diff options
author | Rabin Vincent <rabin@rab.in> | 2011-04-30 10:29:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-03 00:50:58 +0200 |
commit | d946092000698fd204d82a9d239103c656fb63bf (patch) | |
tree | 6d043e823caaddbbbde50b79429d110169f22b28 /drivers/net/usb | |
parent | tg3: Fix failure to enable WoL by default when possible (diff) | |
download | linux-d946092000698fd204d82a9d239103c656fb63bf.tar.xz linux-d946092000698fd204d82a9d239103c656fb63bf.zip |
smsc95xx: fix reset check
The reset loop check should check the MII_BMCR register value for
BMCR_RESET rather than for MII_BMCR (the register address, which also
happens to be zero).
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/smsc95xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 47a6c870b51f..48d4efdb4959 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -730,7 +730,7 @@ static int smsc95xx_phy_initialize(struct usbnet *dev) msleep(10); bmcr = smsc95xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR); timeout++; - } while ((bmcr & MII_BMCR) && (timeout < 100)); + } while ((bmcr & BMCR_RESET) && (timeout < 100)); if (timeout >= 100) { netdev_warn(dev->net, "timeout on PHY Reset"); |