1 --- a/drivers/net/phy/phylink.c
2 +++ b/drivers/net/phy/phylink.c
5 /* If we have a PHY, configure the phy */
7 + if (pl->phydev->drv->get_port && pl->phydev->drv->set_port) {
8 + if(pl->phydev->drv->get_port(pl->phydev) != kset->base.port) {
9 + pl->phydev->drv->set_port(pl->phydev, kset->base.port);
12 ret = phy_ethtool_ksettings_set(pl->phydev, &our_kset);
15 @@ -1422,8 +1427,11 @@
21 + if (pl->phydev->drv->get_eee)
22 + return pl->phydev->drv->get_eee(pl->phydev, eee);
23 ret = phy_ethtool_get_eee(pl->phydev, eee);
28 @@ -1440,9 +1448,11 @@
34 + if (pl->phydev->drv->set_eee)
35 + return pl->phydev->drv->set_eee(pl->phydev, eee);
36 ret = phy_ethtool_set_eee(pl->phydev, eee);
41 EXPORT_SYMBOL_GPL(phylink_ethtool_set_eee);