Skip to content

Add additional phydev locks

Andrew Lunn netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: phy: marvell: Use the unlocked genphy_c45_ethtool_get_eee()drivers/net/phy/marvell.c+1 -10 repliesApplied
2/2net: phy: Add locks to ethtool functionsdrivers/net/phy/phy.c+66 -180 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/2] Add additional phydev locks

The phydev lock should be held when accessing members of phydev, or calling into the driver. Some of the phy_ethtool_ functions are missing locks. Add them. To avoid deadlock the marvell driver is modified since it calls one of the functions which gain locks, which would result in a deadlock.

The missing locks have not caused noticeable issues, so these patches are for net-next.

Andrew Lunn (2):
net: phy: marvell: Use the unlocked genphy_c45_ethtool_get_eee()
net: phy: Add locks to ethtool functions

 drivers/net/phy/marvell.c |  2 +-
 drivers/net/phy/phy.c     | 84 ++++++++++++++++++++++++++++++---------
 drivers/net/usb/lan78xx.c |  2 -
 3 files changed, 67 insertions(+), 21 deletions(-)
Signature · 1 line
2.39.1