Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0bc931

Browse files
committed
net: macb: fix ethernet after resume
Commit bf0ad18 ("net: macb: Specify PHY PM management done by MAC") signals to PHY layer that the PHY PM management is done by the MAC driver itself. In case this is done the mdio_bus_phy_suspend()/mdio_bus_phy_resume() will return just at its beginning letting the MAC driver to handle the PHY power management. Thus the macb driver needs to re-initialize the PHY device itself when resuming. Otherwise there is poor or missing ping connectivity and performance tests fails at all. This has been tested on my side on SAMA7G5-EK (both interfaces) and SAMA5D27 WLSOM1 EK. Fixes: bf0ad18 ("net: macb: Specify PHY PM management done by MAC") Depends-on: ed01653 ("net: phylink: add helper to initialize phylink's phydev") Tested-by: Cristian Birsan <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]>
1 parent e7789b6 commit e0bc931

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5226,6 +5226,7 @@ static int __maybe_unused macb_resume(struct device *dev)
52265226
if (!device_may_wakeup(&bp->dev->dev))
52275227
phy_init(bp->sgmii_phy);
52285228

5229+
phylink_init_phydev(bp->phylink);
52295230
phylink_start(bp->phylink);
52305231
rtnl_unlock();
52315232

0 commit comments

Comments
 (0)