diff options
| author | Wolfram Sang <[email protected]> | 2020-08-29 22:38:09 +0200 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2020-09-18 23:02:02 +0200 |
| commit | 9374ed1dfe1f862f6dd7552b8164252fe5cc424f (patch) | |
| tree | 52e7739d351c90fed59629fe29e029df696a8510 /tools/perf/scripts/python | |
| parent | 6af077194600d5445f802ce4587a3254a215a851 (diff) | |
i2c: rcar: improve bus busy detection
I2C doesn't define a timeout for bus busy, so an arbitrary value like
LOOP_TIMEOUT is not a good idea. Let's use the timeout value in struct
adapter which is meant for such cases and is user-configurable (via
IOCTL). To reduce the load, wait 10us instead of 1us which is good
enough for the slow frequencies used by I2C. Finally, use the
poll_timeout helper instead of open coding it.
Signed-off-by: Wolfram Sang <[email protected]>
Reviewed-by: Niklas Söderlund <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions