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>

authored by Rabin Vincent and committed by David S. Miller d9460920 6fdbab9d

+1 -1
+1 -1
drivers/net/usb/smsc95xx.c
··· 730 730 msleep(10); 731 731 bmcr = smsc95xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR); 732 732 timeout++; 733 - } while ((bmcr & MII_BMCR) && (timeout < 100)); 733 + } while ((bmcr & BMCR_RESET) && (timeout < 100)); 734 734 735 735 if (timeout >= 100) { 736 736 netdev_warn(dev->net, "timeout on PHY Reset");