diff options
| author | Oleksij Rempel <linux@rempel-privat.de> | 2015-03-22 14:29:56 -0400 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-30 04:31:34 -0400 |
| commit | 10e03ef6b4669c56d5d6858d80866bfa9bb2dc57 (patch) | |
| tree | c592906806c0e81b16c23c182ffa8cbc7702e859 /drivers/net/wireless | |
| parent | 3df5dd901d1a4eddcb386d6a5321ef8a61edf376 (diff) | |
ath9k: ath9k_hw_set_4k_power_cal_tabl: use rmw buffer
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_4k.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_4k.c b/drivers/net/wireless/ath/ath9k/eeprom_4k.c index e5a78d4fd66e..fc54fc71a2d3 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_4k.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_4k.c | |||
| @@ -389,6 +389,7 @@ static void ath9k_hw_set_4k_power_cal_table(struct ath_hw *ah, | |||
| 389 | } | 389 | } |
| 390 | } | 390 | } |
| 391 | 391 | ||
| 392 | ENABLE_REG_RMW_BUFFER(ah); | ||
| 392 | REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_NUM_PD_GAIN, | 393 | REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_NUM_PD_GAIN, |
| 393 | (numXpdGain - 1) & 0x3); | 394 | (numXpdGain - 1) & 0x3); |
| 394 | REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_1, | 395 | REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_1, |
| @@ -396,6 +397,7 @@ static void ath9k_hw_set_4k_power_cal_table(struct ath_hw *ah, | |||
| 396 | REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_2, | 397 | REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_2, |
| 397 | xpdGainValues[1]); | 398 | xpdGainValues[1]); |
| 398 | REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_3, 0); | 399 | REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_3, 0); |
| 400 | REG_RMW_BUFFER_FLUSH(ah); | ||
| 399 | 401 | ||
| 400 | for (i = 0; i < AR5416_EEP4K_MAX_CHAINS; i++) { | 402 | for (i = 0; i < AR5416_EEP4K_MAX_CHAINS; i++) { |
| 401 | regChainOffset = i * 0x1000; | 403 | regChainOffset = i * 0x1000; |
