From: Marcin Wojtas <[email protected]> Allow 88E2110 to configure advertisements for both SGMII @2.5Ghz and 2500BaseX modes.
Signed-off-by: Marcin Wojtas <[email protected]> Tested-by: sa_ip-sw-jenkins <[email protected]> Reviewed-by: Kostya Porotchkin <[email protected]> Reviewed-by: Stefan Chulski <[email protected]> Reviewed-by: Nadav Haklai <[email protected]> Signed-off-by: Stefan Roese <[email protected]> --- 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 c3f86d98f9e3..2e08bf3e2f79 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -630,7 +630,8 @@ 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) { + if (phydev->interface == PHY_INTERFACE_MODE_SGMII_2500 || + phydev->interface == PHY_INTERFACE_MODE_2500BASEX) { /* Disabled 10G/5G advertisements */ phy_write(phydev, 7, 0x20, 0xa1); } else { -- 2.31.0

