From: Jin Zhengxiong-R64188 Date: Tue, 27 Jun 2006 10:12:23 +0000 (+0800) Subject: Fix Tsec bug when no link X-Git-Tag: U-Boot-1_1_6~20^2~1^2~53^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fcfb9a57947fc203b99fe81ab0578f7286261f9f;p=oweals%2Fu-boot.git 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 --- diff --git a/drivers/tsec.c b/drivers/tsec.c index 18778c270a..a8a2ba2f52 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) {