|
@@ -299,7 +299,6 @@ static void ath9k_hw_disablepcie(struct ath_hw *ah)
|
|
|
REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
}
|
|
|
|
|
|
/* This should work for all families including legacy */
|
|
@@ -676,7 +675,6 @@ static void ath9k_hw_init_qos(struct ath_hw *ah)
|
|
|
REG_WRITE(ah, AR_TXOP_12_15, 0xFFFFFFFF);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
}
|
|
|
|
|
|
static void ath9k_hw_init_pll(struct ath_hw *ah,
|
|
@@ -741,7 +739,6 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah,
|
|
|
}
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
if (AR_SREV_9300_20_OR_LATER(ah)) {
|
|
|
REG_WRITE(ah, AR_INTR_PRIO_ASYNC_ENABLE, 0);
|
|
@@ -885,7 +882,6 @@ static inline void ath9k_hw_set_dma(struct ath_hw *ah)
|
|
|
REG_WRITE(ah, AR_TXCFG, regval | AR_TXCFG_DMASZ_128B);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
/*
|
|
|
* Restore TX Trigger Level to its pre-reset value.
|
|
@@ -933,7 +929,6 @@ static inline void ath9k_hw_set_dma(struct ath_hw *ah)
|
|
|
}
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
if (AR_SREV_9300_20_OR_LATER(ah))
|
|
|
ath9k_hw_reset_txstatus_ring(ah);
|
|
@@ -1031,7 +1026,6 @@ static bool ath9k_hw_set_reset(struct ath_hw *ah, int type)
|
|
|
REG_WRITE(ah, AR_RTC_RC, rst_flags);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
udelay(50);
|
|
|
|
|
@@ -1070,7 +1064,6 @@ static bool ath9k_hw_set_reset_power_on(struct ath_hw *ah)
|
|
|
udelay(2);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
if (!AR_SREV_9300_20_OR_LATER(ah))
|
|
|
udelay(2);
|
|
@@ -1374,7 +1367,6 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
|
|
|
REG_WRITE(ah, AR_RSSI_THR, INIT_RSSI_THR);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
r = ath9k_hw_rf_set_freq(ah, chan);
|
|
|
if (r)
|
|
@@ -1386,7 +1378,6 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
|
|
|
REG_WRITE(ah, AR_DQCUMASK(i), 1 << i);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
ah->intr_txqs = 0;
|
|
|
for (i = 0; i < ah->caps.total_queues; i++)
|
|
@@ -1434,7 +1425,6 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
|
|
|
REG_WRITE(ah, AR_CFG_LED, saveLedState | AR_CFG_SCLK_32KHZ);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
/*
|
|
|
* For big endian systems turn on swapping for descriptors
|
|
@@ -1684,7 +1674,6 @@ void ath9k_hw_beaconinit(struct ath_hw *ah, u32 next_beacon, u32 beacon_period)
|
|
|
REG_WRITE(ah, AR_NDP_PERIOD, TU_TO_USEC(beacon_period));
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
beacon_period &= ~ATH9K_BEACON_ENA;
|
|
|
if (beacon_period & ATH9K_BEACON_RESET_TSF) {
|
|
@@ -1712,7 +1701,6 @@ void ath9k_hw_set_sta_beacon_timers(struct ath_hw *ah,
|
|
|
TU_TO_USEC(bs->bs_intval & ATH9K_BEACON_PERIOD));
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
REG_RMW_FIELD(ah, AR_RSSI_THR,
|
|
|
AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold);
|
|
@@ -1758,7 +1746,6 @@ void ath9k_hw_set_sta_beacon_timers(struct ath_hw *ah,
|
|
|
REG_WRITE(ah, AR_DTIM_PERIOD, TU_TO_USEC(dtimperiod));
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
|
|
|
REG_SET_BIT(ah, AR_TIMER_MODE,
|
|
|
AR_TBTT_TIMER_EN | AR_TIM_TIMER_EN |
|
|
@@ -2176,7 +2163,6 @@ void ath9k_hw_setrxfilter(struct ath_hw *ah, u32 bits)
|
|
|
REG_READ(ah, AR_RXCFG) & ~AR_RXCFG_ZLFDMA);
|
|
|
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
- DISABLE_REGWRITE_BUFFER(ah);
|
|
|
}
|
|
|
EXPORT_SYMBOL(ath9k_hw_setrxfilter);
|
|
|
|