diff mbox series

[1/1] net: phy: marvell: Fixed handing of delays with plain RGMII interface

Message ID 20210628192826.1855132-2-kurt@x64architecture.com
State New
Headers show
Series Possible Issue Setting the Delay Flags in the Marvell Net PHY Driver | expand

Commit Message

Kurt Cancemi June 28, 2021, 7:28 p.m. UTC
This patch changes the default behavior to enable RX and TX delays for
the PHY_INTERFACE_MODE_RGMII case by default.

Signed-off-by: Kurt Cancemi <kurt@x64architecture.com>
---
 drivers/net/phy/marvell.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
index e6721c1c26c2..a5a9d76b6bab 100644
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net/phy/marvell.c
@@ -546,7 +546,8 @@  static int m88e1121_config_aneg_rgmii_delays(struct phy_device *phydev)
 {
 	int mscr;
 
-	if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID)
+	if (phydev->interface == PHY_INTERFACE_MODE_RGMII ||
+	    phydev->interface == PHY_INTERFACE_MODE_RGMII_ID)
 		mscr = MII_88E1121_PHY_MSCR_RX_DELAY |
 		       MII_88E1121_PHY_MSCR_TX_DELAY;
 	else if (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)