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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:55:22 +0000 (07:55 +0200)
commite70e69a8dcda82aba0eba04323555404724691fe
tree0248d9b5d2d3c0b7f812ce8cf499393e8133b7fa
parent523a9ce7d2c807066e4c99fc19b30e36b02c17f2
mtd: rawnand: fsl_ifc: fix FSL NAND driver to read all ONFI parameter pages

[ Upstream commit a75bbe71a27875fdc61cde1af6d799037cef6bed ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/fsl_ifc_nand.c