netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Add additional phydev locks
@ 2023-02-17  3:07 Andrew Lunn
  2023-02-17  3:07 ` [=PATCH net-next 1/2] net: phy: marvell: Use the unlocked genphy_c45_ethtool_get_eee() Andrew Lunn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Lunn @ 2023-02-17  3:07 UTC (permalink / raw)
  To: netdev; +Cc: Russell King, Heiner Kallweit, Florian Fainelli, Andrew Lunn

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(-)

-- 
2.39.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-20 10:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-17  3:07 [PATCH net-next 0/2] Add additional phydev locks Andrew Lunn
2023-02-17  3:07 ` [=PATCH net-next 1/2] net: phy: marvell: Use the unlocked genphy_c45_ethtool_get_eee() Andrew Lunn
2023-02-17  3:07 ` [=PATCH net-next 2/2] net: phy: Add locks to ethtool functions Andrew Lunn
2023-02-20 10:10 ` [PATCH net-next 0/2] Add additional phydev locks patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).