]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix interrupt storms on queued hardware reset
authorFelix Fietkau <nbd@openwrt.org>
Wed, 8 Aug 2012 14:25:03 +0000 (16:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 18:50:24 +0000 (14:50 -0400)
commit0c8a663b924151b28f078d695269b0ed574e9c85
tree1cbdc5bae0a58e546c16b7bf3ec448bbaf53aab8
parent0e6dc5d20469a62de1fa4b4e888d09d923125d22
ath9k: fix interrupt storms on queued hardware reset

commit 97011d22928ebee30ab361f6c7066f507a22f1a9
"ath9k: Handle fatal interrupts properly" introduced a race condition, where
IRQs are being left enabled, however the irq handler returns IRQ_HANDLED
while the reset is still queued without addressing the IRQ cause.
This leads to an IRQ storm that prevents the system from even getting to
the reset code.

Fix this by disabling IRQs in the handler without touching intr_ref_cnt.

Cc: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Cc: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/mac.c
drivers/net/wireless/ath/ath9k/mac.h
drivers/net/wireless/ath/ath9k/main.c