mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
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>
This commit is contained in:
parent
cf06eef0c8
commit
3365777a6a
1 changed files with 1 additions and 1 deletions
|
@ -1467,7 +1467,7 @@ static int m88e1540_set_fld(struct phy_device *phydev, const u8 *msecs)
|
|||
/* According to the Marvell data sheet EEE must be disabled for
|
||||
* Fast Link Down detection to work properly
|
||||
*/
|
||||
ret = phy_ethtool_get_eee(phydev, &eee);
|
||||
ret = genphy_c45_ethtool_get_eee(phydev, &eee);
|
||||
if (!ret && eee.eee_enabled) {
|
||||
phydev_warn(phydev, "Fast Link Down detection requires EEE to be disabled!\n");
|
||||
return -EBUSY;
|
||||
|
|
Loading…
Reference in a new issue