]> git.itanic.dy.fi Git - linux-stable/commit
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>
Mon, 6 Aug 2018 14:24:36 +0000 (16:24 +0200)
commitb43d01323cf16432db5303dad3e5dfe0271c9240
treefa00266c306ad165e48668cfb671205b34ed3450
parent1fd65d6a00853204652489fbe37278d3771638f8
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