[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210628192826.1855132-2-kurt@x64architecture.com>
Date: Mon, 28 Jun 2021 15:28:26 -0400
From: Kurt Cancemi <kurt@...architecture.com>
To: netdev@...r.kernel.org
Cc: Kurt Cancemi <kurt@...architecture.com>
Subject: [PATCH 1/1] net: phy: marvell: Fixed handing of delays with plain RGMII interface
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@...architecture.com>
---
drivers/net/phy/marvell.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)
--
2.32.0
Powered by blists - more mailing lists