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>
This commit is contained in:
committed by
John W. Linville
parent
ecb1d385ad
commit
79d1d2b8a3
@@ -795,12 +795,16 @@ static void ath9k_hw_init_pll(struct ath_hw *ah,
|
||||
static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah,
|
||||
enum nl80211_iftype opmode)
|
||||
{
|
||||
u32 sync_default = AR_INTR_SYNC_DEFAULT;
|
||||
u32 imr_reg = AR_IMR_TXERR |
|
||||
AR_IMR_TXURN |
|
||||
AR_IMR_RXERR |
|
||||
AR_IMR_RXORN |
|
||||
AR_IMR_BCNMISC;
|
||||
|
||||
if (AR_SREV_9340(ah))
|
||||
sync_default &= ~AR_INTR_SYNC_HOST1_FATAL;
|
||||
|
||||
if (AR_SREV_9300_20_OR_LATER(ah)) {
|
||||
imr_reg |= AR_IMR_RXOK_HP;
|
||||
if (ah->config.rx_intr_mitigation)
|
||||
@@ -831,7 +835,7 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah,
|
||||
|
||||
if (!AR_SREV_9100(ah)) {
|
||||
REG_WRITE(ah, AR_INTR_SYNC_CAUSE, 0xFFFFFFFF);
|
||||
REG_WRITE(ah, AR_INTR_SYNC_ENABLE, AR_INTR_SYNC_DEFAULT);
|
||||
REG_WRITE(ah, AR_INTR_SYNC_ENABLE, sync_default);
|
||||
REG_WRITE(ah, AR_INTR_SYNC_MASK, 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user