Skip to content

net: phy: fixes to PHY_HALTED handling

Anssi Hannula netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: phy: suspend phydev on PHY_HALTED even if there is no linkdrivers/net/phy/phy.c+1 -10 replies
2/2net: phy: ensure autoneg is configured when resuming a phydevdrivers/net/phy/phy.c include/linux/phy.h+12 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] net: phy: fixes to PHY_HALTED handling

Hi all,

Here are a couple of fixes for PHY_HALTED/PHY_RESUMING handling.

On a related note, it feels a bit strange that AFAICS phydevs will only be put to powerdown state (via PHY_HALTED) after the network interface has been brought up and down once. If the ethernet interface is never brought up, the phydev remains powered on (in PHY_READY).

This is because the phydev is only put to PHY_HALTED from phy_stop() and phy_error(), and phy_stop() seems to be normally called only from .ndo_stop().

But I didn't touch that now as I wasn't sure what is the intent there.

Anssi Hannula (2):
net: phy: suspend phydev on PHY_HALTED even if there is no link
net: phy: ensure autoneg is configured when resuming a phydev

 drivers/net/phy/phy.c | 13 +++++++++++--
 include/linux/phy.h   |  2 ++
 2 files changed, 13 insertions(+), 2 deletions(-)
Signature · 1 line
Anssi Hannula / Bitwise Oy