1 --- a/drivers/net/phy/phylink.c
2 +++ b/drivers/net/phy/phylink.c
3 @@ -1425,6 +1425,11 @@ int phylink_ethtool_ksettings_set(struct
4 * the presence of a PHY, this should not be changed as that
5 * should be determined from the media side advertisement.
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 return phy_ethtool_ksettings_set(pl->phydev, kset);
15 @@ -1726,8 +1731,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 @@ -1744,8 +1752,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);