All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: fix ping in netconsole
@ 2020-12-21  3:44 Yang Liu
  2021-01-27 19:21 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Liu @ 2020-12-21  3:44 UTC (permalink / raw
  To: u-boot

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

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] net: fix ping in netconsole
  2020-12-21  3:44 [PATCH] net: fix ping in netconsole Yang Liu
@ 2021-01-27 19:21 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2021-01-27 19:21 UTC (permalink / raw
  To: u-boot

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!

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-27 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-21  3:44 [PATCH] net: fix ping in netconsole Yang Liu
2021-01-27 19:21 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.