i2c-mv64xxx: Reinitialize hw and driver on I2C bus hang
authorDale Farnsworth <dale@farnsworth.org>
Tue, 14 Aug 2007 16:37:14 +0000 (18:37 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 14 Aug 2007 16:37:14 +0000 (18:37 +0200)
commita07ad1cc0300931bfd76bfcd2da3ddad743f4a89
treed8b7eb634571649f9401d351801e5de87cc5c91d
parent5af0e07f87e7d9be2a9db514af1e338341240f6d
i2c-mv64xxx: Reinitialize hw and driver on I2C bus hang

Under certain conditions, the mv64xxx I2C bus can hang preventing
further operation.  To make the driver more robust, we now reset
the I2C hardware and the driver state machine when such hangs are
detected.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-mv64xxx.c