diff options
author | Baruch Siach <baruch@tkos.co.il> | 2019-06-27 21:17:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-29 12:21:18 -0700 |
commit | 7b75e49de424ceb53d13e60f35d0a73765626fda (patch) | |
tree | 0961eb7683caa0f4b529c61b00b32cd97d4726c9 /drivers/net/dsa/mv88e6xxx | |
parent | 3c91f25c2f72ba6001775a5932857c1d2131c531 (diff) | |
download | linux-stable-7b75e49de424ceb53d13e60f35d0a73765626fda.tar.gz linux-stable-7b75e49de424ceb53d13e60f35d0a73765626fda.tar.bz2 linux-stable-7b75e49de424ceb53d13e60f35d0a73765626fda.zip |
net: dsa: mv88e6xxx: wait after reset deactivation
Add a 1ms delay after reset deactivation. Otherwise the chip returns
bogus ID value. This is observed with 88E6390 (Peridot) chip.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 063c7a671b41..2e8b1ab2c6f7 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -4711,6 +4711,8 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev) err = PTR_ERR(chip->reset); goto out; } + if (chip->reset) + usleep_range(1000, 2000); err = mv88e6xxx_detect(chip); if (err) |