mtd: nand: ifc: Fix location of eccstat registers for IFC V1.0
authorMark Marshall <mark.marshall@omicronenergy.com>
Thu, 26 Jan 2017 15:18:27 +0000 (16:18 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 6 Feb 2017 07:54:01 +0000 (08:54 +0100)
commit656441478ed55d960df5f3ccdf5a0f8c61dfd0b3
tree53489d3b2f6e4d81678336528638c7bd70ec3a93
parent07f76443ef81e2b76bb6f7858ba183cd60357ada
mtd: nand: ifc: Fix location of eccstat registers for IFC V1.0

The commit 7a654172161c ("mtd/ifc: Add support for IFC controller
version 2.0") added support for version 2.0 of the IFC controller.
The version 2.0 controller has the ECC status registers at a different
location to the previous versions.

Correct the fsl_ifc_nand structure so that the ECC status can be read
from the correct location for both version 1.0 and 2.0 of the controller.

Cc: stable@vger.kernel.org
Fixes: 7a654172161c ("mtd/ifc: Add support for IFC controller version 2.0")
Signed-off-by: Mark Marshall <mark.marshall@omicronenergy.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/fsl_ifc_nand.c
include/linux/fsl_ifc.h