linux_dsm_epyc7002/drivers/net/dsa/mv88e6xxx
Andrew Lunn 6441e6695a dsa: mv88e6xxx: Timeout based on iterations, not time
The mv88e6xxx driver times out operations on the switch based on
looping until an elapsed wall clock time is reached. However, if
usleep_range() sleeps much longer than expected, it could timeout with
an error without actually checking to see if the devices has completed
the operation. So replace the elapsed time with a fixed upper bound on
the number of loops.

Testing on various switches has shown that switches takes either 0 or
1 iteration, so a maximum of 16 iterations is a safe limit.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-19 17:14:07 -07:00
..
chip.c dsa: mv88e6xxx: Timeout based on iterations, not time 2016-08-19 17:14:07 -07:00
Kconfig
Makefile net: dsa: mv88e6xxx: rename single-chip support 2016-06-25 11:29:47 -04:00
mv88e6xxx.h net: dsa: mv88e6xxx: describe PHY page and SerDes 2016-08-15 16:43:55 -07:00