projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
662e2ac
)
mtd: nand: mxs: fix PIO_WORDs in mxs_nand_read_buf()
author
Luca Ellero
<luca.ellero@brickedbrain.com>
Tue, 16 Dec 2014 14:36:14 +0000
(15:36 +0100)
committer
Scott Wood
<scottwood@freescale.com>
Tue, 31 Mar 2015 03:25:47 +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
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/mxs_nand.c
b/drivers/mtd/nand/mxs_nand.c
index 7a064ab1bf945a2e5724ce9a9bf4e6ad403e1c81..8c6954bfe82e0bad33f0c30ce344cfb05a2f89b3 100644
(file)
--- a/
drivers/mtd/nand/mxs_nand.c
+++ b/
drivers/mtd/nand/mxs_nand.c
@@
-453,7
+453,7
@@
static void mxs_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int length)
d->cmd.data =
MXS_DMA_DESC_COMMAND_NO_DMAXFER | MXS_DMA_DESC_IRQ |
MXS_DMA_DESC_NAND_WAIT_4_READY | MXS_DMA_DESC_DEC_SEM |
- MXS_DMA_DESC_WAIT4END | (
4
<< MXS_DMA_DESC_PIO_WORDS_OFFSET);
+ MXS_DMA_DESC_WAIT4END | (
1
<< MXS_DMA_DESC_PIO_WORDS_OFFSET);
d->cmd.address = 0;