]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commit5ff78563e4b0bbfb2926d5bc6363ae2fa76136cb
treef1348e1017dd8c8b57ad3e8837daeb6f7cac80b7
parent42819a7b76cdab51b57b59c9d6843b3011b007bc
mtd: nand: ifc: Fix location of eccstat registers for IFC V1.0

BugLink: http://bugs.launchpad.net/bugs/1672544
commit 656441478ed55d960df5f3ccdf5a0f8c61dfd0b3 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/mtd/nand/fsl_ifc_nand.c
include/linux/fsl_ifc.h