Skip to content
Snippets Groups Projects
Commit 8b0c5c12 authored by Matthias Fuchs's avatar Matthias Fuchs Committed by Ben Warren
Browse files

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: default avatarMatthias Fuchs <matthias.fuchs@esd-electronics.com>
Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent 505be87a
No related branches found
No related tags found
No related merge requests found
...@@ -596,7 +596,9 @@ void NetStartAgain (void) ...@@ -596,7 +596,9 @@ void NetStartAgain (void)
NetSetHandler (startAgainHandler); NetSetHandler (startAgainHandler);
#else /* !CONFIG_NET_MULTI*/ #else /* !CONFIG_NET_MULTI*/
eth_halt (); eth_halt ();
#if !defined(CONFIG_NET_DO_NOT_TRY_ANOTHER)
eth_try_another (!NetRestarted); eth_try_another (!NetRestarted);
#endif
eth_init (gd->bd); eth_init (gd->bd);
if (NetRestartWrap) { if (NetRestartWrap) {
NetRestartWrap = 0; NetRestartWrap = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment