summaryrefslogtreecommitdiff
path: root/drivers/qe
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2008-02-27 16:08:22 -0600
committerKim Phillips <kim.phillips@freescale.com>2008-03-07 12:47:08 -0600
commitf30b6154f16f5ffa4a9f5bfca5e114d72b6ef675 (patch)
tree0e870ef168f968caf9b24f57e3f841fee017997d /drivers/qe
parentbd4458cb47abecabd406b1210457be96c69fc49d (diff)
downloadu-boot-imx-f30b6154f16f5ffa4a9f5bfca5e114d72b6ef675.zip
u-boot-imx-f30b6154f16f5ffa4a9f5bfca5e114d72b6ef675.tar.gz
u-boot-imx-f30b6154f16f5ffa4a9f5bfca5e114d72b6ef675.tar.bz2
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>
Diffstat (limited to 'drivers/qe')
-rw-r--r--drivers/qe/uec_phy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/qe/uec_phy.c b/drivers/qe/uec_phy.c
index cf9921b..a42701c 100644
--- a/drivers/qe/uec_phy.c
+++ b/drivers/qe/uec_phy.c
@@ -290,6 +290,7 @@ static int genmii_update_link (struct uec_mii_info *mii_info)
return 0;
}
+ i++;
udelay(1000); /* 1 ms */
status = phy_read(mii_info, PHY_BMSR);
}
@@ -577,7 +578,7 @@ void marvell_phy_interface_mode (struct eth_device *dev,
u16 status;
if (!uec->mii_info) {
- printf ("%s: the PHY not intialized\n", __FUNCTION__);
+ printf ("%s: the PHY not initialized\n", __FUNCTION__);
return;
}
mii_info = uec->mii_info;