projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84efa0e
)
ath5k: update AR5K_PHY_RESTART_DIV_GC values to match masks
author
Bruno Randolf
<br1@einfach.org>
Mon, 7 Jun 2010 04:11:25 +0000
(13:11 +0900)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 8 Jun 2010 13:31:20 +0000
(09:31 -0400)
#define AR5K_PHY_RESTART_DIV_GC 0x001c0000
is 3 bit wide.
The previous values of 0xc and 0x8 are 4bit wide and bigger than the mask.
Writing 0 and 1 to AR5K_PHY_RESTART_DIV_GC is consistent with the comments and
initvals we have in the HAL.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/phy.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/phy.c
b/drivers/net/wireless/ath/ath5k/phy.c
index 34ba576d274714b499de5be9fb475c2b1c2290b8..0f3b9beca2c1812513dd02570bdc7d3e520ef568 100644
(file)
--- a/
drivers/net/wireless/ath/ath5k/phy.c
+++ b/
drivers/net/wireless/ath/ath5k/phy.c
@@
-1768,13
+1768,13
@@
ath5k_hw_set_fast_div(struct ath5k_hw *ah, u8 ee_mode, bool enable)
if (enable) {
AR5K_REG_WRITE_BITS(ah, AR5K_PHY_RESTART,
- AR5K_PHY_RESTART_DIV_GC,
0xc
);
+ AR5K_PHY_RESTART_DIV_GC,
1
);
AR5K_REG_ENABLE_BITS(ah, AR5K_PHY_FAST_ANT_DIV,
AR5K_PHY_FAST_ANT_DIV_EN);
} else {
AR5K_REG_WRITE_BITS(ah, AR5K_PHY_RESTART,
- AR5K_PHY_RESTART_DIV_GC, 0
x8
);
+ AR5K_PHY_RESTART_DIV_GC, 0);
AR5K_REG_DISABLE_BITS(ah, AR5K_PHY_FAST_ANT_DIV,
AR5K_PHY_FAST_ANT_DIV_EN);