mtd: onenand: omap2: Pass correct flags for prep_dma_memcpy
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 7 Jan 2020 08:45:44 +0000 (10:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:47:00 +0000 (19:47 +0100)
commit077ac6b1a6b2d1ae2b8a9b5ebb534e794525c334
tree0543a00ebe4b01a1a2e3b993af865546457455c1
parent7835b07257bb005c67a0d6e585db0d12c4c468a0
mtd: onenand: omap2: Pass correct flags for prep_dma_memcpy

commit 8bcef0d54067077cf9a6cb129022c77559926e8c upstream.

The commit converting the driver to DMAengine was missing the flags for
the memcpy prepare call.
It went unnoticed since the omap-dma driver was ignoring them.

Fixes: 3ed6a4d1de2c5 (" mtd: onenand: omap2: Convert to use dmaengine for memcp")
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/onenand/omap2.c