1 --- a/drivers/net/phy/phylink.c
2 +++ b/drivers/net/phy/phylink.c
3 @@ -1242,6 +1242,11 @@ int phylink_ethtool_ksettings_set(struct
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 @@ -1420,8 +1425,11 @@ int phylink_ethtool_get_eee(struct phyli
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 @@ -1438,9 +1446,11 @@ int phylink_ethtool_set_eee(struct phyli
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);