commit | fcfb9a57947fc203b99fe81ab0578f7286261f9f | [log] [tgz] |
---|---|---|
author | Jin Zhengxiong-R64188 <Jason.Jin@freescale.com> | Tue Jun 27 18:12:23 2006 +0800 |
committer | Jon Loeliger <jdl@freescale.com> | Tue Jun 27 10:00:13 2006 -0500 |
tree | 2a99819b94f29d6fbe7c950976d1b6706c10e3f8 | |
parent | bd22c2b97514fbfb0e03bd9c72b3445e4dbd57e2 [diff] |
Fix Tsec bug when no link When tftp a non-exist file from the tftp server, u-boot will check the link of all eth port. The original file will return wrong link state on the no link ports. signed-off-by: Jason Jin <Jason.Jin@freescale.com>
diff --git a/drivers/tsec.c b/drivers/tsec.c index 18778c2..a8a2ba2 100644 --- a/drivers/tsec.c +++ b/drivers/tsec.c
@@ -372,7 +372,7 @@ if (i > PHY_AUTONEGOTIATE_TIMEOUT) { puts (" TIMEOUT !\n"); priv->link = 0; - break; + return 0; } if ((i++ % 1000) == 0) {