net: uec_phy: actually increment the timeout counter
authorKim Phillips <kim.phillips@freescale.com>
Wed, 27 Feb 2008 22:08:22 +0000 (16:08 -0600)
committerKim Phillips <kim.phillips@freescale.com>
Fri, 7 Mar 2008 18:47:08 +0000 (12:47 -0600)
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>
drivers/qe/uec_phy.c

index cf9921b37f302a937aa9df2ece32128d29474722..a42701c59b2d33fff6a6b97e7f06bae2156d0675 100644 (file)
@@ -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;