[U-Boot] [PATCH] MPC512x: reduce timeout waiting for Ethernet autonegotiation to 2.5s

12 Sep
2008
12 Sep
'08
1:55 p.m.
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.
Signed-off-by: Wolfgang Denk wd@denx.de --- drivers/net/mpc512x_fec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/mpc512x_fec.c b/drivers/net/mpc512x_fec.c index 54283fb..7078c4e 100644 --- a/drivers/net/mpc512x_fec.c +++ b/drivers/net/mpc512x_fec.c @@ -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);
--
1.5.4.2
6081
Age (days ago)
6081
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wolfgang Denk