Skip to contentSkip to conversation

net: fix ping in netconsole

PATCH New Yang Liu 2 participants 2 messages Dec 21, 2020 – Jan 27, 2021 Networking

lore
Share & tools
lore

Yang Liu

author
#0 lore raw

PATCH 1/1 net: fix ping in netconsole

Should not init eth device when doing ping in netconsole.

Cc Joe Hershberger <[email protected]>
---
 net/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/net.c +1 -1
index ad7e3b3cf8..b58f3062b2 100644
@@ -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();
Signature · 1 line
2.25.4
#1 lore raw

PATCH 1/1 net: fix ping in netconsole

Quoted 4 lines · Yang Liu

Should not init eth device when doing ping in netconsole.

Cc Joe Hershberger <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210127/2fefba65/attachment.sig>