Files
linux/drivers/i2c/algos
Ville Syrjala 35f68010b4 i2c-algo-bit: Fix spurious SCL timeouts under heavy load
commit 8ee161ce5e upstream.

When the system is under heavy load, there can be a significant delay
between the getscl() and time_after() calls inside sclhi(). That delay
may cause the time_after() check to trigger after SCL has gone high,
causing sclhi() to return -ETIMEDOUT.

To fix the problem, double check that SCL is still low after the
timeout has been reached, before deciding to return -ETIMEDOUT.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-03-19 08:57:59 -07:00
..
2011-03-31 11:26:23 -03:00
2010-10-24 18:16:58 +02:00