projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3df5dd9
)
ath9k: ath9k_hw_set_4k_power_cal_tabl: use rmw buffer
author
Oleksij Rempel
<linux@rempel-privat.de>
Sun, 22 Mar 2015 18:29:56 +0000
(19:29 +0100)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 30 Mar 2015 08:31:34 +0000
(11:31 +0300)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/eeprom_4k.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/eeprom_4k.c
b/drivers/net/wireless/ath/ath9k/eeprom_4k.c
index e5a78d4fd66e570765a0ac5fd020be9115894009..fc54fc71a2d398034abaabb360093009e60ca198 100644
(file)
--- 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,
}
}
+ ENABLE_REG_RMW_BUFFER(ah);
REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_NUM_PD_GAIN,
(numXpdGain - 1) & 0x3);
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,
REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_2,
xpdGainValues[1]);
REG_RMW_FIELD(ah, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_GAIN_3, 0);
+ REG_RMW_BUFFER_FLUSH(ah);
for (i = 0; i < AR5416_EEP4K_MAX_CHAINS; i++) {
regChainOffset = i * 0x1000;