From: Yang Liu Date: Mon, 21 Dec 2020 03:44:39 +0000 (+1100) Subject: net: fix ping in netconsole X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d9506cd41ce98e10a29c25c4766878367103bb2d;p=u-boot.git net: fix ping in netconsole Should not init eth device when doing ping in netconsole. Signed-off-by: Yang Liu Cc: Joe Hershberger --- diff --git a/net/net.c b/net/net.c index ad7e3b3cf8..b58f3062b2 100644 --- a/net/net.c +++ b/net/net.c @@ -412,7 +412,7 @@ int net_loop(enum proto_t protocol) bootstage_mark_name(BOOTSTAGE_ID_ETH_START, "eth_start"); net_init(); - if (eth_is_on_demand_init() || protocol != NETCONS) { + if (eth_is_on_demand_init()) { eth_halt(); eth_set_current(); ret = eth_init();