projects
/
GitHub
/
moto-9609
/
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:
e2e2788
)
r8169:Update the way of reading RTL8168H PHY register "rg_saw_cnt"
author
Chun-Hao Lin
<hau@realtek.com>
Thu, 24 Dec 2015 13:15:27 +0000
(21:15 +0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Dec 2015 05:19:38 +0000
(
00:19
-0500)
The vlaue of RTL8168H PHY register "rg_saw_cnt" only valid from bit0 to bit13.
When read this register, add bitwise-anding its value with 0x3fff.
Signed-off-by: Chunhao Lin <hau@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/realtek/r8169.c
b/drivers/net/ethernet/realtek/r8169.c
index 11cc32b1755e9b4c7dc09b7a9270e4c29c6712fb..58365bcf2370fd3e78b4aef69eb71f3d11e11f72 100644
(file)
--- a/
drivers/net/ethernet/realtek/r8169.c
+++ b/
drivers/net/ethernet/realtek/r8169.c
@@
-6136,7
+6136,7
@@
static void rtl_hw_start_8168h_1(struct rtl8169_private *tp)
rtl_pcie_state_l2l3_enable(tp, false);
rtl_writephy(tp, 0x1f, 0x0c42);
- rg_saw_cnt =
rtl_readphy(tp, 0x13
);
+ rg_saw_cnt =
(rtl_readphy(tp, 0x13) & 0x3fff
);
rtl_writephy(tp, 0x1f, 0x0000);
if (rg_saw_cnt > 0) {
u16 sw_cnt_1ms_ini;