diff mbox series

net: fix ping in netconsole

Message ID 20201221034439.2747170-1-yliu@cybertec.com.au
State Accepted
Commit d9506cd41ce98e10a29c25c4766878367103bb2d
Delegated to: Tom Rini
Headers show
Series net: fix ping in netconsole | expand

Commit Message

Yang Liu Dec. 21, 2020, 3:44 a.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Jan. 27, 2021, 7:21 p.m. UTC | #1
On Mon, Dec 21, 2020 at 02:44:39PM +1100, Yang Liu wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox series

Patch

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();