aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-08-29 22:38:10 +0200
committerWolfram Sang <wsa@kernel.org>2020-09-18 23:02:02 +0200
commit74779f6eeb5a1bbe0acc046a99a2ac5042e9a505 (patch)
tree76f6f474a7bb7b2b5a70b1352b6e1b27a0f3ec7a /tools/perf/scripts/python
parenti2c: rcar: improve bus busy detection (diff)
downloadlinux-74779f6eeb5a1bbe0acc046a99a2ac5042e9a505.tar.gz
linux-74779f6eeb5a1bbe0acc046a99a2ac5042e9a505.zip
i2c: rcar: refactor and shorten timeout when resetting
LOOP_TIMEOUT was only used back then because we didn't want to introduce another constant. The timeout value can easily be a magnitude shorter because the typical range is 3us - 8us. Refactor the code to use the poll_timeout helper, use a specific timeout value and get rid of the ugly LOOP_TIMEOUT constant. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions