linux-stable/drivers/i2c/algos
Enrik Berkhan 2196d1cf4a i2c-algo-pca: Let PCA9564 recover from unacked data byte (state 0x30)
Currently, the i2c-algo-pca driver does nothing if the chip enters state
0x30 (Data byte in I2CDAT has been transmitted; NOT ACK has been
received).  Thus, the i2c bus connected to the controller gets stuck
afterwards.

I have seen this kind of error on a custom board in certain load
situations most probably caused by interference or noise.

A possible reaction is to let the controller generate a STOP condition.
This is documented in the PCA9564 data sheet (2006-09-01) and the same
is done for other NACK states as well.

Further, state 0x38 isn't handled completely, either. Try to do another
START in this case like the data sheet says. As this couldn't be tested,
I've added a comment to try to reset the chip if the START doesn't help
as suggested by Wolfram Sang.

Signed-off-by: Enrik Berkhan <Enrik.Berkhan@ge.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2009-05-05 08:39:25 +02:00
..
i2c-algo-bit.c i2c-algo-bit: Fix timeout test 2009-05-05 08:39:24 +02:00
i2c-algo-pca.c i2c-algo-pca: Let PCA9564 recover from unacked data byte (state 0x30) 2009-05-05 08:39:25 +02:00
i2c-algo-pcf.c i2c: Set a default timeout value for all adapters 2009-03-28 21:34:43 +01:00
i2c-algo-pcf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig i2c: Delete unused i2c-algo-sgi helper module 2009-04-06 18:12:25 +02:00
Makefile i2c: Delete unused i2c-algo-sgi helper module 2009-04-06 18:12:25 +02:00