net: lwip: remove eth_init from net_init as it is called later
authorTim Harvey <tharvey@gateworks.com>
Thu, 10 Jul 2025 15:09:34 +0000 (08:09 -0700)
committerJerome Forissier <jerome.forissier@linaro.org>
Fri, 1 Aug 2025 07:30:47 +0000 (09:30 +0200)
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@gateworks.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
net/lwip/net-lwip.c

index 8c6f057..660ceb1 100644 (file)
@@ -281,7 +281,6 @@ int net_init(void)
 
        if (!init_done) {
                eth_init_rings();
-               eth_init();
                lwip_init();
                init_done = true;
        }