summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2011-11-24 13:06:48 +0800
committerFugang Duan <B38611@freescale.com>2011-11-24 13:06:48 +0800
commit51aa554b0655fb10cb7904071e7bb141042390b2 (patch)
treeb8f40dd1b3a120b91e5fd193733d9171a0d9ddd9 /net/net.c
parent08b5c56351ea218583483f69b0c19c53a836c3c4 (diff)
downloadu-boot-imx-51aa554b0655fb10cb7904071e7bb141042390b2.zip
u-boot-imx-51aa554b0655fb10cb7904071e7bb141042390b2.tar.gz
u-boot-imx-51aa554b0655fb10cb7904071e7bb141042390b2.tar.bz2
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/net.c')
-rw-r--r--net/net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index d1cc9b2..f572c92 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();
}