summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Wu <josh.wu@atmel.com>2013-01-25 10:53:22 +0800
committerJosh Wu <josh.wu@atmel.com>2013-01-25 10:59:52 +0800
commit235ee63dfe52d19a92a0c767a7e25e00cd638383 (patch)
tree214c652640473c1cb27f7ab2c29f2dd06f168a15
parentb1c4a87b038bc4aff5c38a17e50975a873e6ee1f (diff)
at91sama5d31: for TFTP, sama5d31 emac meet many timeout for receiving packets.
Root cause is NOT found. So for tempory make user feel better: 1. increase retry count. from 20 -> 50. 2. shorten the timeout wait time to minimum 1s. Signed-off-by: Josh Wu <josh.wu@atmel.com>
-rw-r--r--include/configs/at91sama5ek.h2
-rw-r--r--net/tftp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/at91sama5ek.h b/include/configs/at91sama5ek.h
index 842bd1e2f9..6396099db6 100644
--- a/include/configs/at91sama5ek.h
+++ b/include/configs/at91sama5ek.h
@@ -174,7 +174,7 @@
#define CONFIG_GMACB
#define CONFIG_RGMII
#define CONFIG_NET_MULTI
-#define CONFIG_NET_RETRY_COUNT 20
+#define CONFIG_NET_RETRY_COUNT 50
#define CONFIG_RESET_PHY_R
#define CONFIG_MACB_SEARCH_PHY
diff --git a/net/tftp.c b/net/tftp.c
index 59a8ebb3cf..73301eff22 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -18,7 +18,7 @@
/* Well known TFTP port # */
#define WELL_KNOWN_PORT 69
/* Millisecs to timeout for lost pkt */
-#define TIMEOUT 5000UL
+#define TIMEOUT 1000UL
#ifndef CONFIG_NET_RETRY_COUNT
/* # of timeouts before giving up */
# define TIMEOUT_COUNT 10