ath9k: fix timeout on stopping rx dma
authorFelix Fietkau <nbd@openwrt.org>
Sat, 20 Nov 2010 02:08:47 +0000 (03:08 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:16 +0000 (13:33 -0800)
commit533549f1c91890db9f1b30eaa87288cbb8ff35bc
treef391441ab2020db026ed488fe9413da6208cbe85
parent8dac975b179793bd7e10c5ffc3e8e9358b825980
ath9k: fix timeout on stopping rx dma

commit d47844a014fada1a788719f6426bc7044f2a0fd8 upstream.

It seems that using ath9k_hw_stoppcurecv to stop rx dma is not enough.
When it's time to stop DMA, the PCU is still busy, so the rx enable
bit never clears.
Using ath9k_hw_abortpcurecv helps with getting rx stopped much faster,
with this change, I cannot reproduce the rx stop related WARN_ON anymore.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/recv.c