[RFC PATCH 0/2] mtd: nand: properly handle bitflips in erased pages

Boris Brezillon
2015-07-30T17:35:23Z

Hi Brian,

This is the patch series I promised a while ago.
The implementation should be generic enough to be used by controller
drivers.
The only problem I can see is for the GPMI controller which might produce
non byte aligned ECC data, and the nand_check_erased helpers are only
working with byte aligned buffers.

Best Regards,

Boris

Boris Brezillon (2):
mtd: nand: add nand_check_erased helper functions
mtd: nand: use nand_check_erased_ecc_chunk in default ECC read
functions

drivers/mtd/nand/nand_base.c | 167 ++++++++++++++++++++++++++++++++++++++++---
include/linux/mtd/nand.h | 8 +++
2 files changed, 167 insertions(+), 8 deletions(-)

--
1.9.1