aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-12-14 04:27:00 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-22 13:56:10 -0500
commit0ce024cbcd5837596bc82861f1d3074d53e956f6 (patch)
tree78af0fc0dcc7321eda30ffc5c0eaebe71e5247e1 /drivers/net/wireless/ath/ath9k/hw.c
parent45d5d805988f1f3c0b24dac59fbba771b1f106a8 (diff)
ath9k: Clarify Interrupt mitigation
ath9k currently supports only RX interrupt mitigation. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 917f70f7a28e..9474f9f6d400 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -368,7 +368,7 @@ static void ath9k_hw_init_config(struct ath_hw *ah)
368 ah->config.spurchans[i][1] = AR_NO_SPUR; 368 ah->config.spurchans[i][1] = AR_NO_SPUR;
369 } 369 }
370 370
371 ah->config.intr_mitigation = true; 371 ah->config.rx_intr_mitigation = true;
372 372
373 /* 373 /*
374 * We need this for PCI devices only (Cardbus, PCI, miniPCI) 374 * We need this for PCI devices only (Cardbus, PCI, miniPCI)
@@ -1160,7 +1160,7 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah,
1160 AR_IMR_RXORN | 1160 AR_IMR_RXORN |
1161 AR_IMR_BCNMISC; 1161 AR_IMR_BCNMISC;
1162 1162
1163 if (ah->config.intr_mitigation) 1163 if (ah->config.rx_intr_mitigation)
1164 ah->mask_reg |= AR_IMR_RXINTM | AR_IMR_RXMINTR; 1164 ah->mask_reg |= AR_IMR_RXINTM | AR_IMR_RXMINTR;
1165 else 1165 else
1166 ah->mask_reg |= AR_IMR_RXOK; 1166 ah->mask_reg |= AR_IMR_RXOK;
@@ -2091,7 +2091,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
2091 2091
2092 REG_WRITE(ah, AR_OBS, 8); 2092 REG_WRITE(ah, AR_OBS, 8);
2093 2093
2094 if (ah->config.intr_mitigation) { 2094 if (ah->config.rx_intr_mitigation) {
2095 REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_LAST, 500); 2095 REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_LAST, 500);
2096 REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_FIRST, 2000); 2096 REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_FIRST, 2000);
2097 } 2097 }
@@ -2751,7 +2751,7 @@ bool ath9k_hw_getisr(struct ath_hw *ah, enum ath9k_int *masked)
2751 2751
2752 *masked = isr & ATH9K_INT_COMMON; 2752 *masked = isr & ATH9K_INT_COMMON;
2753 2753
2754 if (ah->config.intr_mitigation) { 2754 if (ah->config.rx_intr_mitigation) {
2755 if (isr & (AR_ISR_RXMINTR | AR_ISR_RXINTM)) 2755 if (isr & (AR_ISR_RXMINTR | AR_ISR_RXINTM))
2756 *masked |= ATH9K_INT_RX; 2756 *masked |= ATH9K_INT_RX;
2757 } 2757 }
@@ -2884,7 +2884,7 @@ enum ath9k_int ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints)
2884 } 2884 }
2885 if (ints & ATH9K_INT_RX) { 2885 if (ints & ATH9K_INT_RX) {
2886 mask |= AR_IMR_RXERR; 2886 mask |= AR_IMR_RXERR;
2887 if (ah->config.intr_mitigation) 2887 if (ah->config.rx_intr_mitigation)
2888 mask |= AR_IMR_RXMINTR | AR_IMR_RXINTM; 2888 mask |= AR_IMR_RXMINTR | AR_IMR_RXINTM;
2889 else 2889 else
2890 mask |= AR_IMR_RXOK | AR_IMR_RXDESC; 2890 mask |= AR_IMR_RXOK | AR_IMR_RXDESC;