Skip to contentSkip to conversation

net: phy: marvell: avoid configuring fiber page for SGMII-to-Copper

PATCH Applied Russell King 3 participants 3 messages Dec 13, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/net/phy/marvell.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/phy/marvell.c +4 -0
index 1e3996b41af5..710110ead6ad 100644
@@ -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