Skip to content

net: phy: prevent double suspend

Florian Fainelli netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v14 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: phy: utilize phy_suspend and phy_resumedrivers/net/phy/mdio_bus.c+2 -40 replies
2/4net: phy: document has_fixups fieldinclude/linux/phy.h+1 -00 replies
3/4net: phy: keep track of the PHY suspend statedrivers/net/phy/phy_device.c include/linux/phy.h+20 -40 replies
4/4net: phy: avoid suspending twice a PHYdrivers/net/phy/mdio_bus.c+6 -20 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchFugang Duan
1/4A-b T-b
2/4
3/4
4/4A-b T-b

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] net: phy: prevent double suspend

Hi David, Fugang,

This patch series addresses a problem that Fugang and I observed on different platforms where a given PHY device might end-up being suspended twice.

Once as part of the call from ndo_open() all the way down to phy_detach() and phy_suspend() and a second time when the generic platform device/driver suspend/resume callbacks are called in drivers/net/phy/mdio_bus.c.

Thanks to Fugang for giving this a quick try on i.MX6/FEC and reporting positive test results!

Florian Fainelli (4):
net: phy: utilize phy_suspend and phy_resume
net: phy: document has_fixups field
net: phy: keep track of the PHY suspend state
net: phy: avoid suspending twice a PHY

 drivers/net/phy/mdio_bus.c   | 14 ++++++++------
 drivers/net/phy/phy_device.c | 22 ++++++++++++++++++----
 include/linux/phy.h          |  3 +++
 3 files changed, 29 insertions(+), 10 deletions(-)
Signature · 1 line
2.1.0