]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: sunxi: fix the NFC_ECC_ERR_CNT() macro
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 4 Mar 2016 16:25:08 +0000 (17:25 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:41 +0000 (22:05 +0200)
commite3d0cb5b42f56e6a2162d134efa729183a208e0f
tree8f4262c2a4ee2920075e90ea9eac397bfd82b12a
parent90675ac8f82c415a863ed5a88f4aa230eb175df1
mtd: nand: sunxi: fix the NFC_ECC_ERR_CNT() macro

NFC_ECC_ERR_CNT() is not taking into account the case when the NAND chip
contains more than 4 ECC blocks (NANDs with 4kB+ pages).

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