diff options
author | Steve Glendinning <steve.glendinning@shawell.net> | 2012-04-30 07:56:53 +0000 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2019-07-22 19:40:02 +0200 |
commit | d60bf9d83cab3cf37007b15510f894cff7fcabd9 (patch) | |
tree | 9d7b6460ddfce48fa1867a484cc536e694550fd6 | |
parent | d41bf2aada06a6d51685d395ceccff6c53472bcd (diff) | |
download | linux-mmp3-dell-ariel-d60bf9d83cab3cf37007b15510f894cff7fcabd9.tar.gz |
smsc75xx: fix phy init reset loop
fix bug in phy_init loop that was ignoring BMCR reset bit, akin to smsc95xx's d946092000698fd204d82a9d239103c656fb63bf
Signed-off-by: Stephane Fillod <fillods@users.sf.net>
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 8a1d59d79fffdad4bb1b3b5d069da4c6c52db2e6)
Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
-rw-r--r-- | drivers/net/usb/smsc75xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c index 8b6a4f17e6f5db..1a771a6d071de9 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c @@ -660,7 +660,7 @@ static int smsc75xx_phy_initialize(struct usbnet *dev) bmcr = smsc75xx_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR); check_warn_return(bmcr, "Error reading 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"); |