summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2011-11-24 13:06:48 +0800
committerJustin Waters <justin.waters@timesys.com>2012-09-05 14:57:57 -0400
commitcf41f9068da7a6ca1a0363b399d42275733d62e3 (patch)
treeb8f40dd1b3a120b91e5fd193733d9171a0d9ddd9 /net
parent223f80d9c4c5fc46f10b631fb864444a0a801b8a (diff)
ENGR00162937 - FEC: Fix FEC cannot load kernel accroding tftp.
- Issue description: Fec can not get ip address to download kernel if insert the cable after powering up the board more than 20 seconds. - Patch: Restart init FEC interface when net cannot get packets. The cause maybe cabel are unplugin or FEC are not ready. Signed-off-by: Fugang Duan <B38611@freescale.com>
Diffstat (limited to 'net')
-rw-r--r--net/net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index d1cc9b2e9b..f572c92631 100644
--- a/net/net.c
+++ b/net/net.c
@@ -509,6 +509,9 @@ restart:
x = timeHandler;
timeHandler = (thand_f *)0;
(*x)();
+
+ /*get packets timeout, restart net interface*/
+ NetStartAgain();
}