diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-03-30 05:58:35 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:30 -0400 |
commit | 0ef1f168b6bc82b0b157c568e764b75961867970 (patch) | |
tree | 56efe522695728d65930f7957eb469fa2b6a8e15 /drivers/net/wireless/ath9k/hw.c | |
parent | eef7a57430c83b0419ba943bb1650ed5c349d454 (diff) |
ath9k: Remove redundant variable for Interrupt Mitigation
The state is already stored in ath9k_ops_config, so remove
the duplicate variable in ath_hw.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index 4ad1508e4752..bb208f51b561 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -380,7 +380,7 @@ static void ath9k_hw_set_defaults(struct ath_hw *ah) | |||
380 | ah->config.spurchans[i][1] = AR_NO_SPUR; | 380 | ah->config.spurchans[i][1] = AR_NO_SPUR; |
381 | } | 381 | } |
382 | 382 | ||
383 | ah->config.intr_mitigation = 1; | 383 | ah->config.intr_mitigation = true; |
384 | 384 | ||
385 | /* | 385 | /* |
386 | * We need this for PCI devices only (Cardbus, PCI, miniPCI) | 386 | * We need this for PCI devices only (Cardbus, PCI, miniPCI) |
@@ -599,9 +599,6 @@ static struct ath_hw *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc, | |||
599 | 599 | ||
600 | ath9k_hw_set_defaults(ah); | 600 | ath9k_hw_set_defaults(ah); |
601 | 601 | ||
602 | if (ah->config.intr_mitigation != 0) | ||
603 | ah->intr_mitigation = true; | ||
604 | |||
605 | if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_POWER_ON)) { | 602 | if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_POWER_ON)) { |
606 | DPRINTF(sc, ATH_DBG_FATAL, "Couldn't reset chip\n"); | 603 | DPRINTF(sc, ATH_DBG_FATAL, "Couldn't reset chip\n"); |
607 | ecode = -EIO; | 604 | ecode = -EIO; |
@@ -1028,7 +1025,7 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah, | |||
1028 | AR_IMR_RXORN | | 1025 | AR_IMR_RXORN | |
1029 | AR_IMR_BCNMISC; | 1026 | AR_IMR_BCNMISC; |
1030 | 1027 | ||
1031 | if (ah->intr_mitigation) | 1028 | if (ah->config.intr_mitigation) |
1032 | ah->mask_reg |= AR_IMR_RXINTM | AR_IMR_RXMINTR; | 1029 | ah->mask_reg |= AR_IMR_RXINTM | AR_IMR_RXMINTR; |
1033 | else | 1030 | else |
1034 | ah->mask_reg |= AR_IMR_RXOK; | 1031 | ah->mask_reg |= AR_IMR_RXOK; |
@@ -2301,8 +2298,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | |||
2301 | 2298 | ||
2302 | REG_WRITE(ah, AR_OBS, 8); | 2299 | REG_WRITE(ah, AR_OBS, 8); |
2303 | 2300 | ||
2304 | if (ah->intr_mitigation) { | 2301 | if (ah->config.intr_mitigation) { |
2305 | |||
2306 | REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_LAST, 500); | 2302 | REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_LAST, 500); |
2307 | REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_FIRST, 2000); | 2303 | REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_FIRST, 2000); |
2308 | } | 2304 | } |
@@ -2908,7 +2904,7 @@ bool ath9k_hw_getisr(struct ath_hw *ah, enum ath9k_int *masked) | |||
2908 | 2904 | ||
2909 | *masked = isr & ATH9K_INT_COMMON; | 2905 | *masked = isr & ATH9K_INT_COMMON; |
2910 | 2906 | ||
2911 | if (ah->intr_mitigation) { | 2907 | if (ah->config.intr_mitigation) { |
2912 | if (isr & (AR_ISR_RXMINTR | AR_ISR_RXINTM)) | 2908 | if (isr & (AR_ISR_RXMINTR | AR_ISR_RXINTM)) |
2913 | *masked |= ATH9K_INT_RX; | 2909 | *masked |= ATH9K_INT_RX; |
2914 | } | 2910 | } |
@@ -3026,7 +3022,7 @@ enum ath9k_int ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints) | |||
3026 | } | 3022 | } |
3027 | if (ints & ATH9K_INT_RX) { | 3023 | if (ints & ATH9K_INT_RX) { |
3028 | mask |= AR_IMR_RXERR; | 3024 | mask |= AR_IMR_RXERR; |
3029 | if (ah->intr_mitigation) | 3025 | if (ah->config.intr_mitigation) |
3030 | mask |= AR_IMR_RXMINTR | AR_IMR_RXINTM; | 3026 | mask |= AR_IMR_RXMINTR | AR_IMR_RXINTM; |
3031 | else | 3027 | else |
3032 | mask |= AR_IMR_RXOK | AR_IMR_RXDESC; | 3028 | mask |= AR_IMR_RXOK | AR_IMR_RXDESC; |