projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1480744
)
net: fix ping in netconsole
author
Yang Liu
<yliu@cybertec.com.au>
Mon, 21 Dec 2020 03:44:39 +0000
(14:44 +1100)
committer
Tom Rini
<trini@konsulko.com>
Wed, 27 Jan 2021 13:25:31 +0000
(08:25 -0500)
Should not init eth device when doing ping in netconsole.
Signed-off-by: Yang Liu <yliu@cybertec.com.au>
Cc: Joe Hershberger <joe.hershberger@ni.com>
net/net.c
patch
|
blob
|
history
diff --git
a/net/net.c
b/net/net.c
index
ad7e3b3
..
b58f306
100644
(file)
--- 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();