diff options
author | Yang Liu <yliu@cybertec.com.au> | 2020-12-21 14:44:39 +1100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-27 08:25:31 -0500 |
commit | d9506cd41ce98e10a29c25c4766878367103bb2d (patch) | |
tree | bbfcc588c624e9e7ca2e13b53b083c536c25a31a /net/net.c | |
parent | 14807449a4a04fa478c5aba2142b6c157cfcfe4b (diff) | |
download | u-boot-d9506cd41ce98e10a29c25c4766878367103bb2d.zip u-boot-d9506cd41ce98e10a29c25c4766878367103bb2d.tar.gz u-boot-d9506cd41ce98e10a29c25c4766878367103bb2d.tar.bz2 |
net: fix ping in netconsole
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>
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |