From: Stefan Chulski Date: Mon, 3 May 2021 06:08:48 +0000 (+0200) Subject: net: mvpp2: Fix 2.5G GMII_SPEED configurations X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=08f462dd1eb86a81493e12e2bbb974158cee52b3;p=u-boot.git net: mvpp2: Fix 2.5G GMII_SPEED configurations GMII_SPEED should be enabled for 2.5G speed Signed-off-by: Stefan Chulski Reviewed-by: Yan Markman Reviewed-by: Kostya Porotchkin Signed-off-by: Stefan Roese --- diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index 2043bdf10a..ec7cb89a94 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -4445,7 +4445,8 @@ static void mvpp2_link_event(struct mvpp2_port *port) if (phydev->duplex) val |= MVPP2_GMAC_CONFIG_FULL_DUPLEX; - if (phydev->speed == SPEED_1000) + if (phydev->speed == SPEED_1000 || + phydev->speed == 2500) val |= MVPP2_GMAC_CONFIG_GMII_SPEED; else if (phydev->speed == SPEED_100) val |= MVPP2_GMAC_CONFIG_MII_SPEED;