aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVille Syrjala <syrjala@sci.fi>2012-03-15 13:11:05 -0400
committerLuis Henriques <luis.henriques@canonical.com>2012-03-26 05:27:07 -0400
commit64b96140e4d33bb464305ff8beb2880e12c92bdc (patch)
tree7fceada6a8fd5f011bd817344f1713a098de94dd /scripts
parentb9e24519ea78d06dd67046ff26e1d696b069b1ec (diff)
i2c-algo-bit: Fix spurious SCL timeouts under heavy load
BugLink: http://bugs.launchpad.net/bugs/959470 commit 8ee161ce5e0cfc689eb677f227a6248191165fac 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> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions