mtd: nand: atmel: correct bitflips in erased pages for pre-sama5d4 SoCs
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 1 Mar 2016 13:11:52 +0000 (14:11 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:04:50 +0000 (22:04 +0200)
commitff6ee101584c17c4f30ca48d75e2910c49d0b0ff
tree0c6471fc6c8e6e4d890a1d4679888867b284fb21
parent8ae6bcd1dcea249591b4165bd7f795c4868bc531
mtd: nand: atmel: correct bitflips in erased pages for pre-sama5d4 SoCs

New atmel SoCs are able to fix bitflips in erased pages, but old ones
are still impacted by this problem. Use nand_check_erased_ecc_chunk() to
handle this case.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Herve Codina <herve.CODINA@celad.com>
Reviewed-by: Herve Codina <herve.CODINA@celad.com>
Tested-by: Herve Codina <herve.CODINA@celad.com>
drivers/mtd/nand/atmel_nand.c