[U-Boot] [PATCH 2/5] net: fec_mxc: Increase autonegotiation timeout

Dirk Behme dirk.behme at de.bosch.com
Fri Jan 13 13:10:01 CET 2012


From: Troy Kisky <troy.kisky at boundarydevices.com>

Timeouts were happening to soon for some switches.

Signed-off-by: Troy Kisky <troy.kisky at boundarydevices.com>
CC: Troy Kisky <troy.kisky at boundarydevices.com>
CC: Stefano Babic <sbabic at denx.de>
CC: Marek Vasut <marek.vasut at gmail.com>
---
 drivers/net/fec_mxc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 9e8ef7a..b50e01c 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -226,7 +226,7 @@ static int miiphy_wait_aneg(struct eth_device *dev)
 	 */
 	start = get_timer(0);
 	do {
-		if (get_timer(start) > (CONFIG_SYS_HZ * 5)) {
+		if (get_timer(start) > (CONFIG_SYS_HZ * 10)) {
 			printf("%s: Autonegotiation timeout\n", dev->name);
 			return -1;
 		}
-- 
1.7.0.4



More information about the U-Boot mailing list