Skip to content

Commit 7b75e49

Browse files
baruchsiachdavem330
authored andcommitted
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>
1 parent 3c91f25 commit 7b75e49

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/net/dsa/mv88e6xxx

‎drivers/net/dsa/mv88e6xxx/chip.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4711,6 +4711,8 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev)
47114711
err = PTR_ERR(chip->reset);
47124712
goto out;
47134713
}
4714+
if (chip->reset)
4715+
usleep_range(1000, 2000);
47144716

47154717
err = mv88e6xxx_detect(chip);
47164718
if (err)

0 commit comments

Comments
 (0)