Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards

2016-07-08 Thread Wolfram Sang
> > The issue I have is that the i2c device emulates several other devices > > with existing drivers (pca953x, ds1672, at24) and those drivers don't > > have any retry mechanism in place for a retry. > > > > Maybe if I converted those drivers to use regmap I could implement a > > regmap with retr

Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards

2016-07-08 Thread Uwe Kleine-König
Hello Tim, hello Wolfram, On Fri, Jul 08, 2016 at 12:49:04PM -0700, Tim Harvey wrote: > On Thu, Jul 7, 2016 at 11:28 PM, Uwe Kleine-König > wrote: > > Hello Tim, > > > > On Thu, Jul 07, 2016 at 07:03:49AM -0700, Tim Harvey wrote: > >> Gateworks Ventana IMX6 based boards have a Gateworks System Co

Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards

2016-07-08 Thread Tim Harvey
On Thu, Jul 7, 2016 at 11:28 PM, Uwe Kleine-König wrote: > Hello Tim, > > On Thu, Jul 07, 2016 at 07:03:49AM -0700, Tim Harvey wrote: >> Gateworks Ventana IMX6 based boards have a Gateworks System Controller [1] >> (gsc) device that can NAK i2c transactions when its busy in an ADC loop. As >> this

Re: [PATCH] i2c: imx: add retries for i2c-0 on Ventana boards

2016-07-07 Thread Uwe Kleine-König
Hello Tim, On Thu, Jul 07, 2016 at 07:03:49AM -0700, Tim Harvey wrote: > Gateworks Ventana IMX6 based boards have a Gateworks System Controller [1] > (gsc) device that can NAK i2c transactions when its busy in an ADC loop. As > this is always on i2c-0 we will add retries for that bus for any Venta

[PATCH] i2c: imx: add retries for i2c-0 on Ventana boards

2016-07-07 Thread Tim Harvey
Gateworks Ventana IMX6 based boards have a Gateworks System Controller [1] (gsc) device that can NAK i2c transactions when its busy in an ADC loop. As this is always on i2c-0 we will add retries for that bus for any Ventana board. Signed-off-by: Tim Harvey --- drivers/i2c/busses/i2c-imx.c | 12 +