[PATCH net v2 0/2] net: phylink: fix PHY reinitialization on resume
From: Ovidiu Panait
Date: Thu Apr 09 2026 - 05:57:08 EST
When mac_managed_pm flag is set, mdio_bus_phy_resume() is skipped,
so phy_init_hw(), which performs soft_reset and config_init, is not
called during resume.
This is inconsistent with the non-mac_managed_pm path, where
mdio_bus_phy_resume() calls phy_init_hw() before phy_resume()
on every resume.
This series adds phy_init_hw() to the phylink resume path to ensure
consistent PHY state regardless of whether mac_managed_pm is set,
and removes a now-redundant workaround in the KSZ9131 PHY driver.
v2:
- Moved phy_init_hw() from ksz9131_resume() to phylink resume path, as
suggested by Russell.
v1: https://lore.kernel.org/all/20260403111738.37749-1-ovidiu.panait.rb@xxxxxxxxxxx/#t
Ovidiu Panait (2):
net: phylink: call phy_init_hw() in phylink resume path
net: phy: micrel: remove ksz9131_resume()
drivers/net/phy/micrel.c | 10 +---------
drivers/net/phy/phylink.c | 9 ++++++++-
2 files changed, 9 insertions(+), 10 deletions(-)
--
2.34.1