[PATCH] i2c-algo-bit: Fix spurious SCL timeouts under heavy load

2012-03-15 Thread Ville Syrjälä
On Thu, Mar 15, 2012 at 03:32:40PM +0100, Jean Delvare wrote: > Hi Ville, > > On Wed, 14 Mar 2012 10:32:52 +0200, Ville Syrj?l? wrote: > > 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

[PATCH] i2c-algo-bit: Fix spurious SCL timeouts under heavy load

2012-03-15 Thread Jean Delvare
Hi Ville, On Wed, 14 Mar 2012 10:32:52 +0200, Ville Syrj?l? wrote: > 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

Re: [PATCH] i2c-algo-bit: Fix spurious SCL timeouts under heavy load

2012-03-15 Thread Ville Syrjälä
On Thu, Mar 15, 2012 at 03:32:40PM +0100, Jean Delvare wrote: > Hi Ville, > > On Wed, 14 Mar 2012 10:32:52 +0200, Ville Syrjälä wrote: > > 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

Re: [PATCH] i2c-algo-bit: Fix spurious SCL timeouts under heavy load

2012-03-15 Thread Jean Delvare
Hi Ville, On Wed, 14 Mar 2012 10:32:52 +0200, Ville Syrjälä wrote: > 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

[PATCH] i2c-algo-bit: Fix spurious SCL timeouts under heavy load

2012-03-14 Thread Ville Syrjälä
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

[PATCH] i2c-algo-bit: Fix spurious SCL timeouts under heavy load

2012-03-14 Thread Ville Syrjälä
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