]> 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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 13:06:43 +0000 (14:06 +0100)
commit93bdc65e97b0ba48f30b2372cd38a396c6f36932
treebe4777112261c61ef9d17be3c3bc366e46078b6c
parenta689f64fa2d7f5e79d57ca289db9d4f8efa7d50c
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: f436a71240bd ("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