diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2015-06-09 13:58:29 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-06-10 16:08:36 +0300 |
commit | 72a956c556b68aa2a9c2c64f5a7b9e50f7bf67e1 (patch) | |
tree | 260c4e159fc217c8c853b7e7c944dd598ec85d06 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dd1aa2524bc55345ede0b13853c54e1b0be22b9f (diff) | |
download | linux-72a956c556b68aa2a9c2c64f5a7b9e50f7bf67e1.tar.xz |
i2c: davinci: Refactor i2c_davinci_wait_bus_not_busy()
There are several problems in the function:
- "to_cnt" variable does nothing
- schedule_timeout() call without setting current state does nothing
- "allow_sleep" parameter is not really used
Refactor the function so that it really tries to wait. In case of timeout try
to recover the bus.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions