From: Matthias Fuchs Date: Thu, 27 Dec 2007 15:58:41 +0000 (+0100) Subject: net: Add CONFIG_NET_DO_NOT_TRY_ANOTHER option X-Git-Tag: v1.3.2-rc1~102^2~49^2~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b0c5c127690335758100c25eaec2b84db97c101;p=u-boot net: Add CONFIG_NET_DO_NOT_TRY_ANOTHER option 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 Signed-off-by: Ben Warren --- diff --git a/net/net.c b/net/net.c index cac3e09d96..44feee2290 100644 --- a/net/net.c +++ b/net/net.c @@ -596,7 +596,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;