phylink: ensure the PHY interface mode is appropriately set
Subsystems (4)
PATCH 1/1 phylink: ensure the PHY interface mode is appropriately set
When setting the ethtool settings, ensure that the validated PHY interface mode is propagated to the current link settings, so that 2500BaseX can be selected.
Signed-off-by Russell King <[email protected]>
--- drivers/net/phy/phylink.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/phy/phylink.c +1 -0
@@ -1136,6 +1136,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl,mutex_lock (&pl->state_mutex);/* Configure the MAC to match the new settings */ linkmode_copy (pl->link_config.advertising, our_kset.link_modes.advertising); + pl->link_config.interface = config.interface; pl->link_config.speed = our_kset.base.speed; pl->link_config.duplex = our_kset.base.duplex; pl->link_config.an_enabled = our_kset.base.autoneg !=AUTONEG_DISABLE ;
Signature · 1 line
2.7.4
Le 12/20/17 à 15:21, Russell King a écrit :
Quoted 5 lines
When setting the ethtool settings, ensure that the validated PHY interface mode is propagated to the current link settings, so that 2500BaseX can be selected.
Signed-off-by Russell King <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Fixes 9525ae83959b ("phylink: add phylink infrastructure")
Signature · 1 line
Florian
From: Russell King <[email protected]>
Date: Wed, 20 Dec 2017 23:21:28 +0000
Quoted 5 lines
When setting the ethtool settings, ensure that the validated PHY interface mode is propagated to the current link settings, so that 2500BaseX can be selected.
Signed-off-by Russell King <[email protected]>
Applied.