diff options
author | Jon Loeliger <jdl@freescale.com> | 2008-02-14 14:07:21 -0600 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2008-02-14 14:07:21 -0600 |
commit | 746c4b9490495dc4381dbcc49f40078d423e0a48 (patch) | |
tree | e726020abb9e37df1fca19d8895bf203b27612d1 /net/nfs.c | |
parent | 3f2ac8f928c76cbd2374437b2d079f8b4324aaba (diff) | |
parent | fe891ecf4d187e9d11dde869ed4623af52b54451 (diff) | |
download | u-boot-imx-746c4b9490495dc4381dbcc49f40078d423e0a48.zip u-boot-imx-746c4b9490495dc4381dbcc49f40078d423e0a48.tar.gz u-boot-imx-746c4b9490495dc4381dbcc49f40078d423e0a48.tar.bz2 |
Merge commit 'wd/master'
Diffstat (limited to 'net/nfs.c')
-rw-r--r-- | net/nfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |