realtek: Reinit phy after wakeup when WOL is disabled
authorRay <1458889+rayelec@users.noreply.github.com>
Wed, 24 Apr 2019 13:41:44 +0000 (15:41 +0200)
committerNick 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

index 647bb27..63fce86 100644 (file)
@@ -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__);