net: phy: marvell: Use the unlocked genphy_c45_ethtool_get_eee()
authorAndrew Lunn <andrew@lunn.ch>
Fri, 17 Feb 2023 03:07:13 +0000 (04:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2023 10:04:22 +0000 (10:04 +0000)
commit3365777a6a2243f1cca5a441f2c89002d16fc580
treee2b663d44b92d86cdfbccb34d868c2c71762adbd
parentcf06eef0c86bd2088bafecb211e06a2855b4c327
net: phy: marvell: Use the unlocked genphy_c45_ethtool_get_eee()

phy_ethtool_get_eee() is about to gain locking of the phydev lock.
This means it cannot be used within a PHY driver without causing a
deadlock. Swap to using genphy_c45_ethtool_get_eee() which assumes the
lock has already been taken.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c