diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2011-04-19 09:59:19 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-25 14:50:13 -0400 |
commit | 79d1d2b8a34fd36e63cc7f5267cf79217a44edcc (patch) | |
tree | 54ad5882a17f27abd6b54735f73725befe833c8e /drivers/net/wireless/ath/ath9k/hw.c | |
parent | ecb1d385ad61001ff85407e5370a40934a1cc50b (diff) |
ath9k_hw: Disable INTR_HOST1_FATAL to avoid interrupt strom with ar9430
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@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.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 28076086f633..66566ef3b8a8 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -795,12 +795,16 @@ static void ath9k_hw_init_pll(struct ath_hw *ah, | |||
795 | static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah, | 795 | static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah, |
796 | enum nl80211_iftype opmode) | 796 | enum nl80211_iftype opmode) |
797 | { | 797 | { |
798 | u32 sync_default = AR_INTR_SYNC_DEFAULT; | ||
798 | u32 imr_reg = AR_IMR_TXERR | | 799 | u32 imr_reg = AR_IMR_TXERR | |
799 | AR_IMR_TXURN | | 800 | AR_IMR_TXURN | |
800 | AR_IMR_RXERR | | 801 | AR_IMR_RXERR | |
801 | AR_IMR_RXORN | | 802 | AR_IMR_RXORN | |
802 | AR_IMR_BCNMISC; | 803 | AR_IMR_BCNMISC; |
803 | 804 | ||
805 | if (AR_SREV_9340(ah)) | ||
806 | sync_default &= ~AR_INTR_SYNC_HOST1_FATAL; | ||
807 | |||
804 | if (AR_SREV_9300_20_OR_LATER(ah)) { | 808 | if (AR_SREV_9300_20_OR_LATER(ah)) { |
805 | imr_reg |= AR_IMR_RXOK_HP; | 809 | imr_reg |= AR_IMR_RXOK_HP; |
806 | if (ah->config.rx_intr_mitigation) | 810 | if (ah->config.rx_intr_mitigation) |
@@ -831,7 +835,7 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah, | |||
831 | 835 | ||
832 | if (!AR_SREV_9100(ah)) { | 836 | if (!AR_SREV_9100(ah)) { |
833 | REG_WRITE(ah, AR_INTR_SYNC_CAUSE, 0xFFFFFFFF); | 837 | REG_WRITE(ah, AR_INTR_SYNC_CAUSE, 0xFFFFFFFF); |
834 | REG_WRITE(ah, AR_INTR_SYNC_ENABLE, AR_INTR_SYNC_DEFAULT); | 838 | REG_WRITE(ah, AR_INTR_SYNC_ENABLE, sync_default); |
835 | REG_WRITE(ah, AR_INTR_SYNC_MASK, 0); | 839 | REG_WRITE(ah, AR_INTR_SYNC_MASK, 0); |
836 | } | 840 | } |
837 | 841 | ||