diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-08-19 00:01:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-19 17:14:07 -0700 |
commit | 6441e6695acfce66499c186c591f319a3b125de7 (patch) | |
tree | 6176d51df774454eb72af38c718cc4acb1f7f85b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7a7e780cd702fb39edc9af96e75e0cc2b00234f2 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions