]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
spl: nand: simple: replace readb() with chip specific read_buf()
authorVladimir Zapolskiy <vz@mleia.com>
Fri, 17 Jul 2015 22:47:08 +0000 (01:47 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:24:12 +0000 (08:24 +0200)
commit052e88dfa4cb3eb4785037f28037f896bde1d431
treec5625d556f60b2d3797a0d5855a933141878d1e3
parent56a95d416555b09410b2aa86240a2c934194bce1
spl: nand: simple: replace readb() with chip specific read_buf()

Some NAND controllers define custom functions to read data out,
respect this in order to correctly support bad block handling in
simple SPL NAND framework.

NAND controller specific read_buf() is used even to read 1 byte in
case of connected 8-bit NAND device, it turns out that read_byte()
may become outdated.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Tom Warren <twarren@nvidia.com>
Acked-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/nand_spl_simple.c