Skip to contentSkip to conversation

MPC512x: reduce timeout waiting for Ethernet autonegotiation to 2.5s

PATCH New Wolfgang Denk 1 participant 1 message Sep 12, 2008 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MPC512x: reduce timeout waiting for Ethernet autonegotiation to 2.5s

Previous timeout was 50 seconds which is a pain to wait for if you have a system with no ethernet cable attached. Reduce this to 2.5 seconds as a compomise between fast boot and time needed by the PHY.

---
 drivers/net/mpc512x_fec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/mpc512x_fec.c +1 -1
index 54283fb..7078c4e 100644
@@ -364,7 +364,7 @@ int mpc512x_fec_init_phy (struct eth_device *dev, bd_t * bis)
 			/*
 			 * Wait for AN completion
 			 */
-			timeout = 50000;
+			timeout = 2500;
 			do {
 				udelay (1000);
 
Signature · 1 line
1.5.4.2