net: phy: marvell: avoid configuring fiber page for SGMII-to-Copper
Subsystems (3)
PATCH 1/1 net: phy: marvell: avoid configuring fiber page for SGMII-to-Copper
When in SGMII-to-Copper mode, the fiber page is used for the MAC facing link, and does not require configuration of the fiber auto-negotiation settings. Avoid trying.
Signed-off-by Russell King <[email protected]>
--- drivers/net/phy/marvell.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/phy/marvell.c +4 -0
@@ -678,6 +678,10 @@ static int m88e1510_config_aneg(struct phy_device *phydev)if (err <0 ) goto error; +/* Do not touch the fiber page if we're in copper->sgmii mode */ +if (phydev->interface ==PHY_INTERFACE_MODE_SGMII ) +return 0 ; +/* Then the fiber link */ err =marvell_set_page (phydev,MII_MARVELL_FIBER_PAGE );if (err <0 )
Signature · 1 line
2.7.4
Quoted 5 lines · Russell King
When in SGMII-to-Copper mode, the fiber page is used for the MAC facing link, and does not require configuration of the fiber auto-negotiation settings. Avoid trying.
Signed-off-by Russell King <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
From: Russell King <[email protected]>
Date: Wed, 13 Dec 2017 09:22:03 +0000
Quoted 5 lines
When in SGMII-to-Copper mode, the fiber page is used for the MAC facing link, and does not require configuration of the fiber auto-negotiation settings. Avoid trying.
Signed-off-by Russell King <[email protected]>
Applied.