Skip to content
Snippets Groups Projects
Commit a5725fab authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

* Patch by Ganapathi C, 04 Aug 2004:

  Fix NFS timeout issue
parent e1a3f6b3
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
Changes since U-Boot 1.1.1: Changes since U-Boot 1.1.1:
====================================================================== ======================================================================
* Patch by Ganapathi C, 04 Aug 2004:
Fix NFS timeout issue
* Patch by Yuli Barcohen, 19 Jul 2004: * Patch by Yuli Barcohen, 19 Jul 2004:
- Fix host tools building in Cygwin environment - Fix host tools building in Cygwin environment
- Fix header files search order for host tools - Fix header files search order for host tools
......
...@@ -582,6 +582,14 @@ nfs_read_reply (uchar *pkt, unsigned len) ...@@ -582,6 +582,14 @@ nfs_read_reply (uchar *pkt, unsigned len)
Interfaces of U-BOOT Interfaces of U-BOOT
**************************************************************************/ **************************************************************************/
static void
NfsTimeout (void)
{
puts ("Timeout\n");
NetState = NETLOOP_FAIL;
return;
}
static void static void
NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len) NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
{ {
...@@ -660,6 +668,7 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len) ...@@ -660,6 +668,7 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
case STATE_READ_REQ: case STATE_READ_REQ:
rlen = nfs_read_reply (pkt, len); rlen = nfs_read_reply (pkt, len);
NetSetTimeout (NFS_TIMEOUT * CFG_HZ, NfsTimeout);
if (rlen > 0) { if (rlen > 0) {
nfs_offset += rlen; nfs_offset += rlen;
NfsSend (); NfsSend ();
...@@ -676,13 +685,6 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len) ...@@ -676,13 +685,6 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
} }
} }
static void
NfsTimeout (void)
{
puts ("Timeout\n");
NetState = NETLOOP_FAIL;
return;
}
void void
NfsStart (void) NfsStart (void)
......
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