net: phy: fixes to PHY_HALTED handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: phy: suspend phydev on PHY_HALTED even if there is no linkdrivers/ | +1 | 0 replies | |
| 2/2 | net: phy: ensure autoneg is configured when resuming a phydevdrivers/ include/ | +12 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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