Skip to content

net: phy: Unbind/bind fixes

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 Latest3 patches 5 repliesIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- fixed net: phy: Fix lack of reference count on PHY driver against the Generic PHY driver which is special

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: phy: Fix PHY module checksdrivers/net/phy/phy_device.c+5 -35 replies
2/3net: phy: Check phydev->drvdrivers/net/phy/phy.c include/linux/phy.h+25 -40 replies
3/3net: phy: Fix PHY driver bind and unbind eventsdrivers/net/phy/phy_device.c+25 -20 replies

Reviews trailers per patch

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

PatchFabio Estevam
1/3T-b
2/3
3/3

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 v2 0/3] net: phy: Unbind/bind fixes

Hi all,

This patch series addresses the inability to safely unbind and bind PHY drivers by making the appropriate checks throught PHYLIB where we may be directly responding to user-space queries, as well as from within the kernel state machine.

The second patch makes the unbind -> bind working by taking care of the PHY state machine state.

Changes in v2:

- fixed net: phy: Fix lack of reference count on PHY driver against the Generic PHY driver which is special

Florian Fainelli (3):
net: phy: Fix PHY module checks
net: phy: Check phydev->drv
net: phy: Fix PHY driver bind and unbind events

 drivers/net/phy/phy.c        | 26 ++++++++++++++++++++++----
 drivers/net/phy/phy_device.c | 35 ++++++++++++++++++++++++++++++-----
 include/linux/phy.h          |  3 +++
 3 files changed, 55 insertions(+), 9 deletions(-)
Signature · 1 line
2.9.3