summaryrefslogtreecommitdiff
path: root/net/nfs.c
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2008-02-14 10:11:14 -0600
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-02-14 10:11:14 -0600
commit3f2175fa840925e2028c5d482e4cefa787cc8703 (patch)
tree37dab4aa866865e647beda2993e710b4f246fb8f /net/nfs.c
parentd1bcf9e53b41dfa4be6943b739ee82627a0a6d31 (diff)
parentfe891ecf4d187e9d11dde869ed4623af52b54451 (diff)
downloadu-boot-imx-3f2175fa840925e2028c5d482e4cefa787cc8703.zip
u-boot-imx-3f2175fa840925e2028c5d482e4cefa787cc8703.tar.gz
u-boot-imx-3f2175fa840925e2028c5d482e4cefa787cc8703.tar.bz2
Merge branch 'denx'
Diffstat (limited to 'net/nfs.c')
-rw-r--r--net/nfs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/nfs.c b/net/nfs.c
index aa8d612..6573c17 100644
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -34,7 +34,8 @@
#if defined(CONFIG_CMD_NET) && defined(CONFIG_CMD_NFS)
#define HASHES_PER_LINE 65 /* Number of "loading" hashes per line */
-#define NFS_TIMEOUT 60UL
+#define NFS_RETRY_COUNT 30
+#define NFS_TIMEOUT 2UL
static int fs_mounted = 0;
static unsigned long rpc_id = 0;
@@ -586,6 +587,10 @@ Interfaces of U-BOOT
static void
NfsTimeout (void)
{
+ if ( NfsTimeoutCount++ < NFS_RETRY_COUNT ) {
+ NfsSend ();
+ return;
+ }
puts ("Timeout\n");
NetState = NETLOOP_FAIL;
return;