Files
linux-stable-mirror/drivers
Esben Haabendal 7bc1a91a5a i2c: imx: Fix race condition in dma read
commit bed4ff1ed4 upstream.

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@deif.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-24 13:04:51 +02:00
..
2018-06-12 16:19:22 -07:00
2018-06-30 21:24:18 +09:00
…
…
…
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
…
…
2018-06-12 16:19:22 -07:00
2018-06-16 16:40:36 -07:00
2018-06-12 16:19:22 -07:00
…
2018-06-12 16:19:22 -07:00
2018-08-22 07:43:43 +02:00
…
…
2018-06-25 21:36:45 +08:00
2018-06-15 18:10:01 -03:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
…
…
2018-07-18 15:25:25 -07:00
…
2018-07-13 10:37:54 +02:00
…
2018-06-12 16:19:22 -07:00
…
2018-06-12 16:19:22 -07:00
…
…
…
…
…
2018-08-24 13:04:48 +02:00
2018-08-22 07:43:42 +02:00
2018-06-12 16:19:22 -07:00
…
…
…