ath9k: do not access hardware on IRQs during reset
authorFelix Fietkau <nbd@openwrt.org>
Sun, 30 Nov 2014 20:58:32 +0000 (21:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 1 Dec 2014 20:57:22 +0000 (15:57 -0500)
commit872b5d814f99a91bdf92d96265663882b014403d
tree158cf57a112cc29a05821ec2f4ae7171ff65a174
parentef739ab6aac38b25e473f418ecfe1fb433346fa1
ath9k: do not access hardware on IRQs during reset

Instead of killing interrupts during reset when the first one happens,
kill them before issuing the reset.
This fixes an easy to reproduce crash with multiple cards sharing the
same IRQ.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c