[PATCH 0/2] Fix fsl_ifc_nand reading ONFI parameters to meet ONFI spec

From: Jane Wan
Date: Thu Apr 26 2018 - 20:21:29 EST


Per ONFI specification (Rev. 4.0), if the CRC of the first parameter page
read is not valid, the host should read redundant parameter page copies
until it finds a valid copy. If all three parameter pages have invalid
CRC values, the bit-wise majority may be used to recover the contents of
the parameter pages from the parameter page copies present.

The FSL NAND driver only reads the first page. The first patch fixes the
driver to read all three parameter pages. The second patch is the change
for using bit-wise majority to recover the contents of ONFI parameter.

Jane Wan (2):
Fix FSL NAND driver to read all ONFI parameter pages
Use bit-wise majority to recover the contents of ONFI parameter

drivers/mtd/nand/fsl_ifc_nand.c | 10 ++++++----
drivers/mtd/nand/nand_base.c | 35 +++++++++++++++++++++++++++++++----
2 files changed, 37 insertions(+), 8 deletions(-)

--
1.7.9.5