Skip to contentSkip to conversation

net: phy: marvell: Finalize errata section 5.1 for Alaska PHY

PATCH New Stefan Roese 1 participant 1 message Mar 15, 2022

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

PATCH 1/1 net: phy: marvell: Finalize errata section 5.1 for Alaska PHY

From: Leszek Polak <[email protected]>

As per Errata Section 5.1, if EEE is intended to be used, some register writes must be done once after every hardware reset. This patch now adds another register configuration (reg 0x7 in the 0xfb page) which is currently missing in m88e151x_config(). Exactly as listed in the Marvell errata.

Without this fix we experience ethernet problems on some of our boards equipped with a new version of this ethernet PHY (different supplier).

The fix applies to Marvell Alaska 88E1510/88E1518/88E1512/88E1514 Rev. A0.

---
 drivers/net/phy/marvell.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/phy/marvell.c +2 -0
index a62c695c5c84..437912b8b4ad 100644
@@ -344,6 +344,8 @@ static int m88e151x_config(struct phy_device *phydev)
 	phy_write(phydev, MDIO_DEVAD_NONE, 16, 0x214D);
 	phy_write(phydev, MDIO_DEVAD_NONE, 17, 0xCC0C);
 	phy_write(phydev, MDIO_DEVAD_NONE, 16, 0x2159);
+	phy_write(phydev, MDIO_DEVAD_NONE, MIIM_88E1118_PHY_PAGE, 0x00fb);
+	phy_write(phydev, MDIO_DEVAD_NONE, 07, 0xC00D);
 	phy_write(phydev, MDIO_DEVAD_NONE, MIIM_88E1118_PHY_PAGE, 0x0000);
 
 	/* SGMII-to-Copper mode initialization */
Signature · 1 line
2.35.1