From: Dan Carpenter <hidden> Date: 2023-02-27 10:03:54
If genphy_c45_read_eee_adv() fails then we need to do a reset and unlock
the &phydev->lock mutex before returning.
Fixes: 3eeca4e199ce ("net: phy: do not force EEE support")
Signed-off-by: Dan Carpenter <redacted>
---
drivers/net/phy/phy_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -3146,7 +3146,7 @@ static int phy_probe(struct device *dev)*/err=genphy_c45_read_eee_adv(phydev,phydev->advertising_eee);if(err)-returnerr;+gotoout;/* There is no "enabled" flag. If PHY is advertising, assume it is*kindofenabled.
On Mon, Feb 27, 2023 at 01:03:22PM +0300, Dan Carpenter wrote:
If genphy_c45_read_eee_adv() fails then we need to do a reset and unlock
the &phydev->lock mutex before returning.
Fixes: 3eeca4e199ce ("net: phy: do not force EEE support")
Signed-off-by: Dan Carpenter <redacted>
@@ -3146,7 +3146,7 @@ static int phy_probe(struct device *dev)*/err=genphy_c45_read_eee_adv(phydev,phydev->advertising_eee);if(err)-returnerr;+gotoout;/* There is no "enabled" flag. If PHY is advertising, assume it is*kindofenabled.
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni [off-list ref]:
On Mon, 27 Feb 2023 13:03:22 +0300 you wrote:
If genphy_c45_read_eee_adv() fails then we need to do a reset and unlock
the &phydev->lock mutex before returning.
Fixes: 3eeca4e199ce ("net: phy: do not force EEE support")
Signed-off-by: Dan Carpenter <redacted>
---
drivers/net/phy/phy_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)