From: Marek BehĂșn Date: Wed, 27 Apr 2022 10:41:45 +0000 (+0200) Subject: net: mvneta: Fix 10Mbps speed X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=47f0e8e21a16a97963b639df3529759840730d65;p=u-boot.git net: mvneta: Fix 10Mbps speed In mvneta_adjust_link() we need to set MII_SPEED bit only if PHY reports the speed at 100Mbps. Signed-off-by: Marek BehĂșn Reviewed-by: Ramon Fried Reviewed-by: Stefan Roese --- diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index d1c5f7930d..79cdb93341 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -1195,7 +1195,7 @@ static void mvneta_adjust_link(struct udevice *dev) if (phydev->speed == SPEED_1000) val |= MVNETA_GMAC_CONFIG_GMII_SPEED; - else + else if (pp->speed == SPEED_100) val |= MVNETA_GMAC_CONFIG_MII_SPEED; mvreg_write(pp, MVNETA_GMAC_AUTONEG_CONFIG, val);