diff options
| author | Jin Zhengxiong-R64188 <[email protected]> | 2006-06-27 18:12:23 +0800 |
|---|---|---|
| committer | Jon Loeliger <[email protected]> | 2006-06-27 10:00:13 -0500 |
| commit | fcfb9a57947fc203b99fe81ab0578f7286261f9f (patch) | |
| 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 <[email protected]>
| -rw-r--r-- | drivers/tsec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tsec.c b/drivers/tsec.c index 18778c270a6..a8a2ba2f529 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) { |
