9
0
Fork 0

net: usb: smsc95xx: fix wrong phy reset condition

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2014-02-07 09:48:52 +01:00 committed by Sascha Hauer
parent 259b65b5ac
commit 4a5f389d1d
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ static int smsc95xx_phy_initialize(struct usbnet *dev)
udelay(10 * 1000);
bmcr = smsc95xx_mdio_read(&dev->miibus, 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");