mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
net: phy: marvell: fix return code
Return the correct error code, not the value written to the register.
Fixes: a219912e0f ("net: phy: marvell: implement config_inband() method")
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20260706120637.1947685-1-mwalle@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e13caf1c26
commit
7d8ca62d6a
|
|
@ -753,7 +753,7 @@ static int m88e1111_config_inband(struct phy_device *phydev, unsigned int modes)
|
|||
err = phy_modify(phydev, MII_M1111_PHY_EXT_SR,
|
||||
MII_M1111_HWCFG_SERIAL_AN_BYPASS, extsr);
|
||||
if (err < 0)
|
||||
return extsr;
|
||||
return err;
|
||||
|
||||
return phy_modify_paged(phydev, MII_MARVELL_FIBER_PAGE, MII_BMCR,
|
||||
BMCR_ANENABLE, bmcr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user