ath9k: Proper TX99 interrupt ref count
authorEduardo Abinader <eabinader@ocedo.com>
Thu, 19 May 2016 15:15:29 +0000 (17:15 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 28 May 2016 08:24:25 +0000 (11:24 +0300)
On TX99 mode, instead of assuming interrupt mask non ATH9K_INT_GLOBAL,
let ath9k_hw_disable_interrupts proper set interrupt ref count.
This prevents some PCI PERR occurring specialy when setting 11b and n rates.

Signed-off-by: Eduardo Abinader <eduardo.abinader@riverbed.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/tx99.c

index 6161536e93973c596750fba75a704d314922291c..16aca9e28b77396889fa9cc477b37c9a75cbb311 100644 (file)
@@ -132,7 +132,6 @@ static int ath9k_tx99_init(struct ath_softc *sc)
        ath9k_ps_wakeup(sc);
 
        ath9k_hw_disable_interrupts(ah);
-       atomic_set(&ah->intr_ref_cnt, -1);
        ath_drain_all_txq(sc);
        ath_stoprecv(sc);