projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd6faea
)
realtek: Reinit phy after wakeup when WOL is disabled
author
Ray
<1458889+rayelec@users.noreply.github.com>
Wed, 24 Apr 2019 13:41:44 +0000
(15:41 +0200)
committer
Nick Xie
<nick@khadas.com>
Fri, 12 Jul 2019 05:36:17 +0000
(13:36 +0800)
When WOL is disabled the power is cut in uboot. After wakeup the speed
is very slow. Re-init fixes it.
drivers/net/phy/realtek.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/realtek.c
b/drivers/net/phy/realtek.c
index
647bb27
..
63fce86
100644
(file)
--- a/
drivers/net/phy/realtek.c
+++ b/
drivers/net/phy/realtek.c
@@
-252,7
+252,7
@@
int rtl8211f_resume(struct phy_device *phydev)
phy_write(phydev, RTL8211F_PAGE_SELECT, 0);
mutex_unlock(&phydev->lock);
} else {
-
genphy_resume
(phydev);
+
rtl8211f_config_init
(phydev);
}
pr_debug("%s %d\n", __func__, __LINE__);