Skip to content

Commit

Permalink
net: dsa: mv88e6xxx: wait after reset deactivation
Browse files Browse the repository at this point in the history
[ Upstream commit 7b75e49 ]

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 <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
baruchsiach authored and gregkh committed Aug 4, 2019
1 parent 1a94807 commit 4f6e4d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/dsa/mv88e6xxx/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -3846,6 +3846,8 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev)
mv88e6xxx_mdio_unregister(chip);
return err;
}
if (chip->reset)
usleep_range(1000, 2000);

return 0;
}
Expand Down

0 comments on commit 4f6e4d1

Please sign in to comment.