Re: [PATCH v2 2/2] i2c: octeon: thunderx: Limit register access retries

2016-09-24 Thread Wolfram Sang
On Fri, Sep 23, 2016 at 11:40:39AM +0200, Jan Glauber wrote: > Do not infinitely retry register readq and writeq operations > in order to not lock up the CPU in case the TWSI gets stuck. > > Return -ETIMEDOUT in case of a failed data read. For all other > cases just return so subsequent operations

[PATCH v2 2/2] i2c: octeon: thunderx: Limit register access retries

2016-09-23 Thread Jan Glauber
Do not infinitely retry register readq and writeq operations in order to not lock up the CPU in case the TWSI gets stuck. Return -ETIMEDOUT in case of a failed data read. For all other cases just return so subsequent operations will fail and trigger the recovery. Signed-off-by: Jan Glauber ---