Skip to content

Commit 8bcef0d

Browse files
Peter Ujfalusimiquelraynal
authored andcommitted
mtd: onenand: omap2: Pass correct flags for prep_dma_memcpy
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: 3ed6a4d (" mtd: onenand: omap2: Convert to use dmaengine for memcp") Reported-by: Aaro Koskinen <[email protected]> Signed-off-by: Peter Ujfalusi <[email protected]> Tested-by: H. Nikolaus Schaller <[email protected]> Tested-by: Aaro Koskinen <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 14ebf24 commit 8bcef0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/mtd/nand/onenand/omap2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ static inline int omap2_onenand_dma_transfer(struct omap2_onenand *c,
328328
struct dma_async_tx_descriptor *tx;
329329
dma_cookie_t cookie;
330330

331-
tx = dmaengine_prep_dma_memcpy(c->dma_chan, dst, src, count, 0);
331+
tx = dmaengine_prep_dma_memcpy(c->dma_chan, dst, src, count,
332+
DMA_CTRL_ACK | DMA_PREP_INTERRUPT);
332333
if (!tx) {
333334
dev_err(&c->pdev->dev, "Failed to prepare DMA memcpy\n");
334335
return -EIO;

0 commit comments

Comments
 (0)