i2c-algo-bit: Complain about masters which can't read SCL
authorJean Delvare <khali@linux-fr.org>
Mon, 10 Jan 2011 21:11:23 +0000 (22:11 +0100)
committerJean Delvare <khali@endymion.delvare>
Mon, 10 Jan 2011 21:11:23 +0000 (22:11 +0100)
commitaf5a60baaee66e2f891dbb9a8519ca28ab7da7cd
treeb2dc270ce64b4ad9779d1f3a013a96cfb7ab069e
parentf451171c5ac829e55581c81caf2cb01e1c0a5c5f
i2c-algo-bit: Complain about masters which can't read SCL

The I2C specification explicitly describes both SDA and SCL as
bidirectional lines. An I2C master with a read-only SCL is thus not
compliant. If a slow slave stretches the clock, errors will happen,
so the bus can't be considered as reliable.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/algos/i2c-algo-bit.c