Skip to contentSkip to conversation

ath9k_hw: check for asynchronous MCI interrupt pending

RFC New Mohammed Shafi Shajakhan 1 participant 1 message Nov 15, 2011 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

RFC 8/18 ath9k_hw: check for asynchronous MCI interrupt pending

From: Mohammed Shafi Shajakhan <[email protected]>

MCI interrupt is an asynchronous one, so take care of it by having a check in ath9k_hw_intrpend, which actually decides whether the interrupt is really for the driver from ath_isr

---
 drivers/net/wireless/ath/ath9k/mac.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath9k/mac.c +4 -1
index 9d69320..0e4fbb3 100644
@@ -760,7 +760,10 @@ bool ath9k_hw_intrpend(struct ath_hw *ah)
 		return true;
 
 	host_isr = REG_READ(ah, AR_INTR_ASYNC_CAUSE);
-	if ((host_isr & AR_INTR_MAC_IRQ) && (host_isr != AR_INTR_SPURIOUS))
+
+	if (((host_isr & AR_INTR_MAC_IRQ) ||
+	     (host_isr & AR_INTR_ASYNC_MASK_MCI)) &&
+	    (host_isr != AR_INTR_SPURIOUS))
 		return true;
 
 	host_isr = REG_READ(ah, AR_INTR_SYNC_CAUSE);
Signature · 1 line
1.7.0.4