diff options
author | Tom Rini <trini@konsulko.com> | 2019-04-09 12:10:40 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-09 12:10:40 -0400 |
commit | 5a451f11c800cde986386aa7cab464b40260ae3c (patch) | |
tree | 0c38454238a3ee787ba72f304fc25b7921845222 /drivers/net/macb.c | |
parent | 1d63ec3fa40e4899ad1d74d5ed3c926acfda54f2 (diff) | |
parent | 7bf9bca7c0a9fe5c63e8fd5c2aa63884d76dace0 (diff) |
Merge tag 'u-boot-atmel-2019.07-a' of git://git.denx.de/u-boot-atmel
First set of u-boot-atmel features and fixes for 2019.07 cycle
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r-- | drivers/net/macb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 182331f61d..72614164e9 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -550,8 +550,14 @@ static int macb_phy_init(struct macb_device *macb, const char *name) for (i = 0; i < MACB_AUTONEG_TIMEOUT / 100; i++) { status = macb_mdio_read(macb, MII_BMSR); - if (status & BMSR_LSTATUS) + if (status & BMSR_LSTATUS) { + /* + * Delay a bit after the link is established, + * so that the next xfer does not fail + */ + mdelay(10); break; + } udelay(100); } } |