diff options
author | Vivien Didelot <vivien.didelot@gmail.com> | 2019-08-10 00:47:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-12 06:27:15 +0200 |
commit | eede236112b7ea4d9a7c2f2af2ac6648699b88f3 (patch) | |
tree | 837a76ba3252c623c95063f1797fc656b125e3cd /drivers | |
parent | net: dsa: mv88e6xxx: fix SMI bit checking (diff) | |
download | linux-eede236112b7ea4d9a7c2f2af2ac6648699b88f3.tar.xz linux-eede236112b7ea4d9a7c2f2af2ac6648699b88f3.zip |
net: dsa: mv88e6xxx: add delay in direct SMI wait
The mv88e6xxx_smi_direct_wait routine is used to wait on indirect
registers access. It is of no exception and must delay between read
attempts, like other wait routines.
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/smi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/smi.c b/drivers/net/dsa/mv88e6xxx/smi.c index 18e87a5a20a3..282fe08db050 100644 --- a/drivers/net/dsa/mv88e6xxx/smi.c +++ b/drivers/net/dsa/mv88e6xxx/smi.c @@ -66,6 +66,8 @@ static int mv88e6xxx_smi_direct_wait(struct mv88e6xxx_chip *chip, if (!!(data & BIT(bit)) == !!val) return 0; + + usleep_range(1000, 2000); } return -ETIMEDOUT; |