Skip to content

Commit a231df2

Browse files
nick650823jfvogel
authored andcommitted
net: axienet: Set mac_managed_pm
[ Upstream commit a370295 ] The external PHY will undergo a soft reset twice during the resume process when it wake up from suspend. The first reset occurs when the axienet driver calls phylink_of_phy_connect(), and the second occurs when mdio_bus_phy_resume() invokes phy_init_hw(). The second soft reset of the external PHY does not reinitialize the internal PHY, which causes issues with the internal PHY, resulting in the PHY link being down. To prevent this, setting the mac_managed_pm flag skips the mdio_bus_phy_resume() function. Fixes: a129b41 ("Revert "net: phy: dp83867: perform soft reset and retain established link"") Signed-off-by: Nick Hu <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit 83539bfbc1196f82b55d92265028d880486ecfb8) Signed-off-by: Jack Vogel <[email protected]>
1 parent 539ccea commit a231df2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2888,6 +2888,7 @@ static int axienet_probe(struct platform_device *pdev)
28882888

28892889
lp->phylink_config.dev = &ndev->dev;
28902890
lp->phylink_config.type = PHYLINK_NETDEV;
2891+
lp->phylink_config.mac_managed_pm = true;
28912892
lp->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE |
28922893
MAC_10FD | MAC_100FD | MAC_1000FD;
28932894

0 commit comments

Comments
 (0)