mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-11 05:02:26 -04:00
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>
This commit is contained in:
parent
bd22c2b975
commit
fcfb9a5794
@ -372,7 +372,7 @@ uint mii_parse_sr(uint mii_reg, struct tsec_private *priv)
|
|||||||
if (i > PHY_AUTONEGOTIATE_TIMEOUT) {
|
if (i > PHY_AUTONEGOTIATE_TIMEOUT) {
|
||||||
puts (" TIMEOUT !\n");
|
puts (" TIMEOUT !\n");
|
||||||
priv->link = 0;
|
priv->link = 0;
|
||||||
break;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((i++ % 1000) == 0) {
|
if ((i++ % 1000) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user