Skip to content

net: make PHY PM ops a no-op if MAC driver manages PHY PM

Heiner Kallweit netdev 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3net: phy: make PHY PM ops a no-op if MAC driver manages PHY PMdrivers/net/phy/phy_device.c include/linux/phy.h+8 -00 replies
2/3net: fec: use mac-managed PHY PMdrivers/net/ethernet/freescale/fec_main.c+3 -03 replies
3/3r8169: use mac-managed PHY PMdrivers/net/ethernet/realtek/r8169_main.c+3 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchJoakim Zhang
1/3
2/3T-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/3] net: make PHY PM ops a no-op if MAC driver manages PHY PM

Resume callback of the PHY driver is called after the one for the MAC driver. The PHY driver resume callback calls phy_init_hw(), and this is potentially problematic if the MAC driver calls phy_start() in its resume callback. One issue was reported with the fec driver and a KSZ8081 PHY which seems to become unstable if a soft reset is triggered during aneg.

The new flag allows MAC drivers to indicate that they take care of suspending/resuming the PHY. Then the MAC PM callbacks can handle any dependency between MAC and PHY PM.

Heiner Kallweit (3):
net: phy: make PHY PM ops a no-op if MAC driver manages PHY PM
net: fec: use mac-managed PHY PM
r8169: use mac-managed PHY PM

 drivers/net/ethernet/freescale/fec_main.c | 3 +++
 drivers/net/ethernet/realtek/r8169_main.c | 3 +++
 drivers/net/phy/phy_device.c              | 6 ++++++
 include/linux/phy.h                       | 2 ++
 4 files changed, 14 insertions(+)
Signature · 1 line
2.31.1