Skip to content

Commit 6dcae80

Browse files
committed
drivers: ethernet: vsc8541: remove forcing 1000Mbps speeds
The driver was trying to force the PHY to operate at 1000 Mbps speeds by setting some register bits, but since auto-negotiation was enabled by default this did not do anything. Remove this. Signed-off-by: Robert Hancock <robert.hancock@calian.com>
1 parent be49443 commit 6dcae80

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/ethernet/phy/phy_microchip_vsc8541.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -245,20 +245,6 @@ static int phy_mc_vsc8541_reset(const struct device *dev)
245245
return ret;
246246
}
247247

248-
/* we use limited advertising, to force gigabit speed */
249-
/* initial version of this driver supports only 1GB/s */
250-
251-
/* 1000MBit/s + AUTO */
252-
ret = phy_mc_vsc8541_write(dev, PHY_REG_PAGE0_ADV, (1 << 8) | (1 << 6) | 0x01);
253-
if (ret) {
254-
return ret;
255-
}
256-
257-
ret = phy_mc_vsc8541_write(dev, PHY_REG_PAGE0_CTRL1000, (1 << 12) | (1 << 11) | (1 << 9));
258-
if (ret) {
259-
return ret;
260-
}
261-
262248
/* start auto negotiation */
263249
ret = phy_mc_vsc8541_write(dev, PHY_REG_PAGE0_BMCR, BMCR_ANENABLE | BMCR_ANRESTART);
264250
if (ret) {

0 commit comments

Comments
 (0)