summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJin Zhengxiong-R64188 <Jason.Jin@freescale.com>2006-06-27 18:12:23 +0800
committerJon Loeliger <jdl@freescale.com>2006-06-27 10:00:13 -0500
commitfcfb9a57947fc203b99fe81ab0578f7286261f9f (patch)
tree2a99819b94f29d6fbe7c950976d1b6706c10e3f8 /drivers
parentbd22c2b97514fbfb0e03bd9c72b3445e4dbd57e2 (diff)
downloadu-boot-imx-fcfb9a57947fc203b99fe81ab0578f7286261f9f.zip
u-boot-imx-fcfb9a57947fc203b99fe81ab0578f7286261f9f.tar.gz
u-boot-imx-fcfb9a57947fc203b99fe81ab0578f7286261f9f.tar.bz2
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tsec.c2
1 files changed, 1 insertions, 1 deletions
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 @@ uint mii_parse_sr(uint mii_reg, struct tsec_private *priv)
if (i > PHY_AUTONEGOTIATE_TIMEOUT) {
puts (" TIMEOUT !\n");
priv->link = 0;
- break;
+ return 0;
}
if ((i++ % 1000) == 0) {