[PATCH u-boot-marvell 02/19] net: mvneta: Fix 10Mbps speed

Stefan Roese sr at denx.de
Mon May 2 08:48:16 CEST 2022


On 27.04.22 12:41, Marek Behún wrote:
> From: Marek Behún <marek.behun at nic.cz>
> 
> 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 <marek.behun at nic.cz>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


> ---
>   drivers/net/mvneta.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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);

Viele Grüße,
Stefan Roese

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list