]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc754e99cbcfab4ca58403ce650c89fc3008c2c0b
tree2d6285b15042a77a3298a83eee0856050488ef8c
parentdcfdf9a989e54ae78a2630452472abe3a4c9916c
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