]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: sunxi: avoid retrieving data before ECC pass
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Tue, 20 Oct 2015 20:16:01 +0000 (22:16 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 2 Nov 2015 20:54:37 +0000 (12:54 -0800)
commit85fcb5cfe00d362ad08ebc99ecdf828b59548ff3
tree429945b3feef95bf11f368b65e7ebda241b0b930
parent59cde8e72387d03c9b320b680c9c0533ecdaa7c3
mtd: nand: sunxi: avoid retrieving data before ECC pass

The in-band data are copied twice: before ECC correction and after the
ECC engine has fixed all the fixable bitflips.
Drop the useless memcpy_fromio operation by passing a NULL pointer when
calling sunxi_nfc_read_buf().

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/sunxi_nand.c