mtd: nand: mxs: fix PIO_WORDs in mxs_nand_write_buf()
authorLuca Ellero <luca.ellero@brickedbrain.com>
Tue, 16 Dec 2014 14:36:15 +0000 (15:36 +0100)
committerScott Wood <scottwood@freescale.com>
Tue, 31 Mar 2015 03:25:54 +0000 (22:25 -0500)
There is only one pio_word in this DMA transaction so data field must be 1.

Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com>
drivers/mtd/nand/mxs_nand.c

index 8c6954bfe82e0bad33f0c30ce344cfb05a2f89b3..2d2b938633c20260fbde12c50aa88cc3491b8c0d 100644 (file)
@@ -510,7 +510,7 @@ static void mxs_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf,
        d->cmd.data =
                MXS_DMA_DESC_COMMAND_DMA_READ | MXS_DMA_DESC_IRQ |
                MXS_DMA_DESC_DEC_SEM | MXS_DMA_DESC_WAIT4END |
-               (4 << MXS_DMA_DESC_PIO_WORDS_OFFSET) |
+               (1 << MXS_DMA_DESC_PIO_WORDS_OFFSET) |
                (length << MXS_DMA_DESC_BYTES_OFFSET);
 
        d->cmd.address = (dma_addr_t)nand_info->data_buf;