From: Jin Zhengxiong-R64188 Date: Tue, 27 Jun 2006 10:12:23 +0000 (+0800) Subject: Fix Tsec bug when no link X-Git-Tag: v2008.10-rc1~1125^2~1^2~53^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcfb9a57947fc203b99fe81ab0578f7286261f9f;p=platform%2Fkernel%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 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) {