mtd: rawnand: fsl_ifc: fix FSL NAND driver to read all ONFI parameter pages
authorJane Wan <Jane.Wan@nokia.com>
Tue, 8 May 2018 21:19:53 +0000 (14:19 -0700)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 9 May 2018 14:04:21 +0000 (16:04 +0200)
commita75bbe71a27875fdc61cde1af6d799037cef6bed
tree7982dfb2b5588bcd8f46172d0d9f592004ac6a5d
parentbb415dff3ab73b0e97f031dbc7ca708f76739643
mtd: rawnand: fsl_ifc: fix FSL NAND driver to read all ONFI parameter pages

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.
Fix FSL NAND driver to read the two redundant copies which are mandatory
in the specification.

Signed-off-by: Jane Wan <Jane.Wan@nokia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/fsl_ifc_nand.c