From: Stefan Roese Date: Tue, 27 Apr 2021 11:48:30 +0200 Subject: [PATCH 3/4] net: phy: marvell: Remove PHY_INTERFACE_MODE_SGMII_2500 In-Reply-To: <20210427094831.545521-1-sr@denx.de> References: <20210427094831.545521-1-sr@denx.de> Message-ID: <20210427094831.545521-3-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de As was discussed on the list, PHY_INTERFACE_MODE_SGMII_2500 is used incorrectly in the Marvell mvpp2 network driver and the Marvell PHY code. This patch removes the references to this macro in the Marvell PHY driver for now. The correct support shall be implemented at a later time. Signed-off-by: Stefan Roese Cc: Konstantin Porotchkin Cc: Stefan Chulski Cc: Nadav Haklai Cc: Marek Behun --- This patch is targeted on-top of the latest Marvell SERDES, mvpp2 and PHY patches to resolve the ongoing discussion of the incorrect usage of SGMII_2500 for now. drivers/net/phy/marvell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 3bcb0033b391..8850b604ef47 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -634,8 +634,7 @@ static int m88e2110_config(struct phy_device *phydev) /* Disabled 10G advertisement */ phy_write(phydev, 7, 0x20, 0x1e1); } else { - if (phydev->interface == PHY_INTERFACE_MODE_SGMII_2500 || - phydev->interface == PHY_INTERFACE_MODE_2500BASEX) { + if (phydev->interface == PHY_INTERFACE_MODE_2500BASEX) { /* Disabled 10G/5G advertisements */ phy_write(phydev, 7, 0x20, 0xa1); } else { -- 2.31.1