Daniel Kurtz 70a1cc1952 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>
2012-07-24 14:13:58 +02:00
..
2012-07-24 14:13:56 +02:00
2011-10-29 09:55:45 +01:00
2012-07-24 14:13:56 +02:00
2011-03-31 11:26:23 -03:00
2012-07-24 14:13:56 +02:00
2011-01-04 00:53:37 +00:00
2012-01-20 08:24:22 -08:00
2011-05-24 20:58:49 +02:00
2011-05-24 20:58:49 +02:00
2012-07-24 14:13:56 +02:00
2012-05-12 14:28:14 +02:00
2012-05-12 14:28:11 +02:00
2012-07-24 14:13:56 +02:00
2012-07-24 14:13:56 +02:00
2011-10-29 09:55:45 +01:00
2011-06-29 11:36:10 +02:00
2012-07-24 14:13:56 +02:00
2012-05-12 14:28:18 +02:00
2012-05-12 14:28:14 +02:00