Re: [PATCH v2 2/4] i2c: imx: Fix race condition in dma read

2018-08-09 Thread Esben Haabendal
Uwe Kleine-König writes: > On Mon, Jul 09, 2018 at 11:43:02AM +0200, Esben Haabendal wrote: >> From: Esben Haabendal >> >> This fixes a race condition, where the DMAEN bit ends up being set after >> I2C slave has transmitted a byte following the dummy read. When that >> happens, an interrupt

Re: [PATCH v2 2/4] i2c: imx: Fix race condition in dma read

2018-08-09 Thread Esben Haabendal
Uwe Kleine-König writes: > On Mon, Jul 09, 2018 at 11:43:02AM +0200, Esben Haabendal wrote: >> From: Esben Haabendal >> >> This fixes a race condition, where the DMAEN bit ends up being set after >> I2C slave has transmitted a byte following the dummy read. When that >> happens, an interrupt

Re: [PATCH v2 2/4] i2c: imx: Fix race condition in dma read

2018-07-24 Thread Uwe Kleine-König
On Mon, Jul 09, 2018 at 11:43:02AM +0200, Esben Haabendal wrote: > From: Esben Haabendal > > This fixes a race condition, where the DMAEN bit ends up being set after > I2C slave has transmitted a byte following the dummy read. When that > happens, an interrupt is generated instead, and no DMA

Re: [PATCH v2 2/4] i2c: imx: Fix race condition in dma read

2018-07-24 Thread Uwe Kleine-König
On Mon, Jul 09, 2018 at 11:43:02AM +0200, Esben Haabendal wrote: > From: Esben Haabendal > > This fixes a race condition, where the DMAEN bit ends up being set after > I2C slave has transmitted a byte following the dummy read. When that > happens, an interrupt is generated instead, and no DMA

[PATCH v2 2/4] i2c: imx: Fix race condition in dma read

2018-07-09 Thread Esben Haabendal
From: Esben Haabendal This fixes a race condition, where the DMAEN bit ends up being set after I2C slave has transmitted a byte following the dummy read. When that happens, an interrupt is generated instead, and no DMA request is generated to kickstart the DMA read, and a timeout happens after

[PATCH v2 2/4] i2c: imx: Fix race condition in dma read

2018-07-09 Thread Esben Haabendal
From: Esben Haabendal This fixes a race condition, where the DMAEN bit ends up being set after I2C slave has transmitted a byte following the dummy read. When that happens, an interrupt is generated instead, and no DMA request is generated to kickstart the DMA read, and a timeout happens after