Skip to content

Commit 64961f1

Browse files
Russell King (Oracle)kuba-moo
authored andcommitted
net: stmmac: move priv->phylink_config.mac_managed_pm
Move priv->phylink_config.mac_managed_pm to be along side the other phylink initialisations. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://lore.kernel.org/r/E1qZAXi-005pUV-Nq@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent bedf9b8 commit 64961f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,7 @@ static int stmmac_phy_setup(struct stmmac_priv *priv)
12071207

12081208
priv->phylink_config.dev = &priv->dev->dev;
12091209
priv->phylink_config.type = PHYLINK_NETDEV;
1210+
priv->phylink_config.mac_managed_pm = true;
12101211

12111212
mdio_bus_data = priv->plat->mdio_bus_data;
12121213
if (mdio_bus_data)
@@ -1231,7 +1232,6 @@ static int stmmac_phy_setup(struct stmmac_priv *priv)
12311232
if (priv->plat->tx_queues_to_use > 1)
12321233
priv->phylink_config.mac_capabilities &=
12331234
~(MAC_10HD | MAC_100HD | MAC_1000HD);
1234-
priv->phylink_config.mac_managed_pm = true;
12351235

12361236
max_speed = priv->plat->max_speed;
12371237
if (max_speed)

0 commit comments

Comments
 (0)