[PATCH] net: lwip: remove eth_init from net_init as it is called later

Jerome Forissier jerome.forissier at linaro.org
Thu Jul 10 17:31:29 CEST 2025



On 7/10/25 17:09, Tim Harvey wrote:
> The call to eth_init within net_init causes the network interface to
> start, stop, start again which can cause issues with certain network
> device drivers. Remove it to make it behave like the legacy network
> path.
> 
> Fixes: 5666865decb8 ("net: lwip: fix initialization sequence before a command")
> Signed-off-by: Tim Harvey <tharvey at gateworks.com>
> ---
>  net/lwip/net-lwip.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c
> index 3918d57d7e58..d53faa39ba11 100644
> --- a/net/lwip/net-lwip.c
> +++ b/net/lwip/net-lwip.c
> @@ -285,7 +285,6 @@ int net_init(void)
>  
>  	if (!init_done) {
>  		eth_init_rings();
> -		eth_init();
>  		lwip_init();
>  		init_done = true;
>  	}

Reviewed-by: Jerome Forissier <jerome.forissier at linaro.org>

Thanks,
-- 
Jerome


More information about the U-Boot mailing list