phy: phy_start_aneg: Add an unlocked version
authorAndrew Lunn <andrew@lunn.ch>
Sun, 24 Oct 2021 19:48:04 +0000 (21:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 13:06:43 +0000 (14:06 +0100)
commit707293a56f95f8e7e0cfae008010c7933fb68973
treebe4777112261c61ef9d17be3c3bc366e46078b6c
parent64cd92d5e8180c2ded3fdea76862de6f596ae2c9
phy: phy_start_aneg: Add an unlocked version

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: 2d55173e71b0 ("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>
drivers/net/phy/phy.c