Introduce AH_AR5416_INTERRUPT_MITIGATION which enables interrupt mitigation for
the AR5416 and later. Rename the older HAL option to use this.
This commit is contained in:
parent
1c62cc63b6
commit
b569f9f5df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220188
@ -786,6 +786,9 @@ AH_USE_INIPDGAIN opt_ah.h
|
||||
AH_MAXCHAN opt_ah.h
|
||||
AH_RXCFG_SDMAMW_4BYTES opt_ah.h
|
||||
|
||||
# AR5416 and later interrupt mitigation
|
||||
AH_AR5416_INTERRUPT_MITIGATION opt_ah.h
|
||||
|
||||
# options for the Broadcom BCM43xx driver (bwi)
|
||||
BWI_DEBUG opt_bwi.h
|
||||
BWI_DEBUG_VERBOSE opt_bwi.h
|
||||
|
@ -128,7 +128,7 @@ ar5416GetPendingInterrupts(struct ath_hal *ah, HAL_INT *masked)
|
||||
}
|
||||
|
||||
/* Interrupt Mitigation on AR5416 */
|
||||
#ifdef AR5416_INT_MITIGATION
|
||||
#ifdef AH_AR5416_INTERRUPT_MITIGATION
|
||||
if (isr & (AR_ISR_RXMINTR | AR_ISR_RXINTM))
|
||||
*masked |= HAL_INT_RX;
|
||||
if (isr & (AR_ISR_TXMINTR | AR_ISR_TXINTM))
|
||||
@ -194,7 +194,7 @@ ar5416SetInterrupts(struct ath_hal *ah, HAL_INT ints)
|
||||
mask = ints & HAL_INT_COMMON;
|
||||
mask2 = 0;
|
||||
|
||||
#ifdef AR5416_INT_MITIGATION
|
||||
#ifdef AH_AR5416_INTERRUPT_MITIGATION
|
||||
/*
|
||||
* Overwrite default mask if Interrupt mitigation
|
||||
* is specified for AR5416
|
||||
|
@ -305,7 +305,7 @@ ar5416Reset(struct ath_hal *ah, HAL_OPMODE opmode,
|
||||
*/
|
||||
OS_REG_WRITE(ah, AR_OBS, 8);
|
||||
|
||||
#ifdef AR5416_INT_MITIGATION
|
||||
#ifdef AH_AR5416_INTERRUPT_MITIGATION
|
||||
OS_REG_WRITE(ah, AR_MIRT, 0);
|
||||
|
||||
OS_REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_LAST, 500);
|
||||
@ -538,7 +538,7 @@ ar5416InitIMR(struct ath_hal *ah, HAL_OPMODE opmode)
|
||||
| AR_IMR_RXERR | AR_IMR_RXORN
|
||||
| AR_IMR_BCNMISC;
|
||||
|
||||
#ifdef AR5416_INT_MITIGATION
|
||||
#ifdef AH_AR5416_INTERRUPT_MITIGATION
|
||||
ahp->ah_maskReg |= AR_IMR_TXINTM | AR_IMR_RXINTM
|
||||
| AR_IMR_TXMINTR | AR_IMR_RXMINTR;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user