ath5k: disable tasklets during reset
authorBob Copeland <me@bobcopeland.com>
Tue, 13 Jul 2010 15:32:41 +0000 (11:32 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Jul 2010 17:52:46 +0000 (13:52 -0400)
commit450464def78c94018d997ae6f823578499cdf879
tree2d6285b15042a77a3298a83eee0856050488ef8c
parent5faaff747710dfb79d5aa72b9faface94ad4b3f3
ath5k: disable tasklets during reset

Based on a patch from Bruno Randolf, attempting useful
work while we are resetting the chip just leads to interface
lockups and bad descriptor data, and possibly DMAing to
freed buffers.  Let's suspend all tasklets while
reprogramming the registers in the card to avoid such
problems.

In the future we can convert the tasklets to threaded
interrupt handlers to simplify things.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c