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:
7b37e0d
)
ath9k: ath9k_hw_4k_set_board_values: use rmw buffer
author
Oleksij Rempel
<linux@rempel-privat.de>
Sun, 22 Mar 2015 18:29:58 +0000
(19:29 +0100)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 30 Mar 2015 08:31:36 +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 fc54fc71a2d398034abaabb360093009e60ca198..06005626241067f15cdd6ddd6dd8644147ac6222 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/eeprom_4k.c
+++ b/
drivers/net/wireless/ath/ath9k/eeprom_4k.c
@@
-1082,6
+1082,7
@@
static void ath9k_hw_4k_set_board_values(struct ath_hw *ah,
mask = BIT(0)|BIT(5)|BIT(10)|BIT(15)|BIT(20)|BIT(25);
pwrctrl = mask * bb_desired_scale;
clr = mask * 0x1f;
+ ENABLE_REG_RMW_BUFFER(ah);
REG_RMW(ah, AR_PHY_TX_PWRCTRL8, pwrctrl, clr);
REG_RMW(ah, AR_PHY_TX_PWRCTRL10, pwrctrl, clr);
REG_RMW(ah, AR_PHY_CH0_TX_PWRCTRL12, pwrctrl, clr);
@@
-1096,6
+1097,7
@@
static void ath9k_hw_4k_set_board_values(struct ath_hw *ah,
clr = mask * 0x1f;
REG_RMW(ah, AR_PHY_CH0_TX_PWRCTRL11, pwrctrl, clr);
REG_RMW(ah, AR_PHY_CH0_TX_PWRCTRL13, pwrctrl, clr);
+ REG_RMW_BUFFER_FLUSH(ah);
}
}