[U-Boot-Users] [PATCH] net: uec_phy: actually increment the timeout counter

Kim Phillips kim.phillips at freescale.com
Wed Feb 27 23:08:22 CET 2008


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 at freescale.com>
---
almost forgot this one :).  It also corrects a spelling mistake.  This
fixes a bug, so it's for 1.3.2.

 drivers/qe/uec_phy.c |    3 ++-
 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;
-- 
1.5.4.23.gef5b9





More information about the U-Boot mailing list