]> git.baikalelectronics.ru Git - kernel.git/commit
phy: phy_start_aneg: Add an unlocked version
authorAndrew Lunn <andrew@lunn.ch>
Sun, 24 Oct 2021 19:48:04 +0000 (21:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:46:14 +0000 (19:46 +0100)
commit5c95c3e15894e130012c8f6cee853f305a1ba76b
tree496b72a00344473b30e04c1900eccfd07fa58e7e
parent8682462657a8bbfe972dccb8a75c9b8cc3b0e291
phy: phy_start_aneg: Add an unlocked version

commit 707293a56f95f8e7e0cfae008010c7933fb68973 upstream.

Split phy_start_aneg into a wrapper which takes the PHY lock, and a
helper doing the real work. This will be needed when
phy_ethtook_ksettings_set takes the lock.

Fixes: b8d3899eefb1 ("phy: add generic function to support ksetting support")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/phy.c