mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
lan78xx: Check device ready bit (PMT_CTL_READY_) after reset the PHY
Check device ready bit (PMT_CTL_READY_) after reset the PHY. Device may not be ready even if PHY_RST_ is cleared depends on configuration. Signed-off-by: Woojung Huh <woojung.huh@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bde6f9ded1
commit
6c595b03b1
1 changed files with 1 additions and 1 deletions
|
@ -2002,7 +2002,7 @@ static int lan78xx_reset(struct lan78xx_net *dev)
|
|||
netdev_warn(dev->net, "timeout waiting for PHY Reset");
|
||||
return -EIO;
|
||||
}
|
||||
} while (buf & PMT_CTL_PHY_RST_);
|
||||
} while ((buf & PMT_CTL_PHY_RST_) || !(buf & PMT_CTL_READY_));
|
||||
|
||||
lan78xx_mii_init(dev);
|
||||
|
||||
|
|
Loading…
Reference in a new issue