You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ath5k: Fix reset and interrupts for AHB type of devices.
On WiSoc we cannot access mac register before it is resetted. It will crash hardware otherwise. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
a0b907ee2a
commit
4cebb34caa
@@ -2148,7 +2148,8 @@ ath5k_intr(int irq, void *dev_id)
|
||||
unsigned int counter = 1000;
|
||||
|
||||
if (unlikely(test_bit(ATH_STAT_INVALID, sc->status) ||
|
||||
!ath5k_hw_is_intr_pending(ah)))
|
||||
((ath5k_get_bus_type(ah) != ATH_AHB) &&
|
||||
!ath5k_hw_is_intr_pending(ah))))
|
||||
return IRQ_NONE;
|
||||
|
||||
do {
|
||||
@@ -2214,6 +2215,10 @@ ath5k_intr(int irq, void *dev_id)
|
||||
tasklet_schedule(&sc->rf_kill.toggleq);
|
||||
|
||||
}
|
||||
|
||||
if (ath5k_get_bus_type(ah) == ATH_AHB)
|
||||
break;
|
||||
|
||||
} while (ath5k_hw_is_intr_pending(ah) && --counter > 0);
|
||||
|
||||
if (unlikely(!counter))
|
||||
|
||||
Reference in New Issue
Block a user