public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] net: Add CONFIG_NET_DO_NOT_TRY_ANOTHER option
@ 2007-12-27 15:58 Matthias Fuchs
  0 siblings, 0 replies; only message in thread
From: Matthias Fuchs @ 2007-12-27 15:58 UTC (permalink / raw)
  To: u-boot

When CONFIG_NET_DO_NOT_TRY_ANOTHER is defined U-Boot's
networking stack does not automatically switch to
another interface. This patch does not touch the default
behavior.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
---
 net/net.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/net.c b/net/net.c
index c719bc4..2418434 100644
--- a/net/net.c
+++ b/net/net.c
@@ -593,7 +593,9 @@ void NetStartAgain (void)
 	NetSetHandler (startAgainHandler);
 #else	/* !CONFIG_NET_MULTI*/
 	eth_halt ();
+#if !defined(CONFIG_NET_DO_NOT_TRY_ANOTHER)
 	eth_try_another (!NetRestarted);
+#endif
 	eth_init (gd->bd);
 	if (NetRestartWrap) {
 		NetRestartWrap = 0;
-- 
1.5.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-27 15:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-27 15:58 [U-Boot-Users] [PATCH] net: Add CONFIG_NET_DO_NOT_TRY_ANOTHER option Matthias Fuchs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox