mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
net: dsa: microchip: Disable RGMII in-band status on KSZ9893
We can't assume that the link partner supports the in-band status reporting which is enabled by default on the KSZ9893 when using RGMII for the upstream port. Signed-off-by: Paul Barker <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
committed by
David S. Miller
parent
805a7e6f53
commit
ade64eb5be
@@ -1235,6 +1235,9 @@ static void ksz9477_port_setup(struct ksz_device *dev, int port, bool cpu_port)
|
||||
if (dev->interface == PHY_INTERFACE_MODE_RGMII_ID ||
|
||||
dev->interface == PHY_INTERFACE_MODE_RGMII_TXID)
|
||||
data8 |= PORT_RGMII_ID_EG_ENABLE;
|
||||
/* On KSZ9893, disable RGMII in-band status support */
|
||||
if (dev->features & IS_9893)
|
||||
data8 &= ~PORT_MII_MAC_MODE;
|
||||
p->phydev.speed = SPEED_1000;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user