mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
net: uec_phy: actually increment the timeout counter
allow u-boot to recover (and, e.g., switch to another interface) in the case where a PHY does not report autonegotiation is complete within its two second timeout value. Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
This commit is contained in:
parent
bd4458cb47
commit
f30b6154f1
1 changed files with 2 additions and 1 deletions
|
@ -290,6 +290,7 @@ static int genmii_update_link (struct uec_mii_info *mii_info)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i++;
|
||||||
udelay(1000); /* 1 ms */
|
udelay(1000); /* 1 ms */
|
||||||
status = phy_read(mii_info, PHY_BMSR);
|
status = phy_read(mii_info, PHY_BMSR);
|
||||||
}
|
}
|
||||||
|
@ -577,7 +578,7 @@ void marvell_phy_interface_mode (struct eth_device *dev,
|
||||||
u16 status;
|
u16 status;
|
||||||
|
|
||||||
if (!uec->mii_info) {
|
if (!uec->mii_info) {
|
||||||
printf ("%s: the PHY not intialized\n", __FUNCTION__);
|
printf ("%s: the PHY not initialized\n", __FUNCTION__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mii_info = uec->mii_info;
|
mii_info = uec->mii_info;
|
||||||
|
|
Loading…
Add table
Reference in a new issue