diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2012-07-24 14:13:58 +0200 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2012-07-24 14:13:58 +0200 |
commit | 70a1cc1952355404a5746c88757f5a444df52b04 (patch) | |
tree | b97d76988c4ac5781faf3edd8bde4021eadc1ad1 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 0ba8b8bfd56533f0b9af7513c6ebbc10c79ae052 (diff) |
i2c-i801: Check and return errors during byte-by-byte transfers
If an error is detected in the polling loop, abort the transaction and
return an error code.
* DEV_ERR is set if the device does not respond with an acknowledge, and
the SMBus controller times out (minimum 25ms).
* BUS_ERR is set if a bus arbitration collision is detected. In other
words, when the SMBus controller tries to generate a START condition, but
detects that the SMBDATA is being held low, usually by another SMBus/I2C
master.
* FAILED is only set if a transaction is stopped by software (using
the SMBHSTCNT KILL bit).
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions