aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2021-05-25 21:59:05 +0200
committerWolfram Sang <[email protected]>2021-06-20 22:51:26 +0200
commit44c54c4ec391412c7f529e53d27844dadc6d536a (patch)
treee47ed63c624262e9c572a62f400cde7893139814 /scripts/gdb/linux
parente11654ec22a3e00975a499fcfdbf0407e2d41b60 (diff)
i2c: i801: Improve status polling
Polling uses the same timeout as irq mode: 400 * 500us = 200ms = HZ / 5. So let's use the adapter->timeout value also for polling. This has the advantage that userspace can control the timeout value for polling as well. In addition change the code to make it better readable. Last but not least remove the timeout debug messages. Calls to both functions are followed by a call to i801_check_post() that will print an error message in case of timeout. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Jean Delvare <[email protected]> Tested-by: Jean Delvare <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions