Skip to content

Commit e813bb2

Browse files
Markus Pargmanndavem330
authored andcommitted
net: fec: Fix RGMII-ID mode
RGMII-ID uses an internal delay within the transmitter or receiver. This feature is phy specific. The rest of the communication is normal RGMII. So the fec driver has to check for all RGMII modes, not only 'PHY_INTERFACE_MODE_RGMII'. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 07841f9 commit e813bb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,10 @@ fec_restart(struct net_device *ndev)
988988
rcntl |= 0x40000000 | 0x00000020;
989989

990990
/* RGMII, RMII or MII */
991-
if (fep->phy_interface == PHY_INTERFACE_MODE_RGMII)
991+
if (fep->phy_interface == PHY_INTERFACE_MODE_RGMII ||
992+
fep->phy_interface == PHY_INTERFACE_MODE_RGMII_ID ||
993+
fep->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID ||
994+
fep->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID)
992995
rcntl |= (1 << 6);
993996
else if (fep->phy_interface == PHY_INTERFACE_MODE_RMII)
994997
rcntl |= (1 << 8);

0 commit comments

Comments
 (0)