You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
net: phy: marvell10g: fix return value on error
[ Upstream commit0ed9704b66] Return back the error value that we get from phy_read_mmd(). Fixes:c84786fa8f("net: phy: marvell10g: read copper results from CSSR1") Signed-off-by: Baruch Siach <baruch.siach@siklu.com> Reviewed-by: Marek Behún <kabel@kernel.org> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://lore.kernel.org/r/f47cb031aeae873bb008ba35001607304a171a20.1650868058.git.baruch@tkos.co.il Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e974c730f0
commit
1204386e26
@@ -650,7 +650,7 @@ static int mv3310_read_status_copper(struct phy_device *phydev)
|
||||
|
||||
cssr1 = phy_read_mmd(phydev, MDIO_MMD_PCS, MV_PCS_CSSR1);
|
||||
if (cssr1 < 0)
|
||||
return val;
|
||||
return cssr1;
|
||||
|
||||
/* If the link settings are not resolved, mark the link down */
|
||||
if (!(cssr1 & MV_PCS_CSSR1_RESOLVED)) {
|
||||
|
||||
Reference in New Issue
Block a user