Re: [PATCH v4 1/3] i2c: imx: Fix race condition in dma read

From: Wolfram Sang
Date: Mon Aug 20 2018 - 05:13:43 EST


On Thu, Aug 16, 2018 at 10:43:12AM +0200, Esben Haabendal wrote:
> From: Esben Haabendal <eha@xxxxxxxx>
>
> 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 DMA_TIMEOUT (1 sec).
>
> Fixed by setting the DMAEN bit before the dummy read.
>
> Signed-off-by: Esben Haabendal <eha@xxxxxxxx>
> Acked-by: Uwe Kleine-KÃnig <u.kleine-koenig@xxxxxxxxxxxxxx>

Applied to for-next and added stable, thanks!

Attachment: signature.asc
Description: PGP signature