mtd: nand: ifc: Initialize SRAM for all version >= 1.0
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Jul 13 10:59:23 PDT 2017
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d1ab0da84dcbac30a9039ccef72d69bf0a68bfc7
Commit: d1ab0da84dcbac30a9039ccef72d69bf0a68bfc7
Parent: 0d3a966d2b34f449df7859fa39e3db5b71da2bfa
Author: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>
AuthorDate: Fri Jun 9 16:27:21 2017 +0530
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Tue Jun 20 09:17:25 2017 +0200
mtd: nand: ifc: Initialize SRAM for all version >= 1.0
All IFC version >= 1.0 use 28nm technology for SRAM. Here SRAM has
a requirement to initialize before any read operation performed for
avoiding ECC Error.
So update condition check to initialize SRAM for all IFC version >= 1.0.0
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/fsl_ifc_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c
index d1c4538..59408ec 100644
--- a/drivers/mtd/nand/fsl_ifc_nand.c
+++ b/drivers/mtd/nand/fsl_ifc_nand.c
@@ -913,7 +913,7 @@ static int fsl_ifc_chip_init(struct fsl_ifc_mtd *priv)
chip->ecc.algo = NAND_ECC_HAMMING;
}
- if (ctrl->version == FSL_IFC_VERSION_1_1_0)
+ if (ctrl->version >= FSL_IFC_VERSION_1_1_0)
fsl_ifc_sram_init(priv);
return 0;
More information about the linux-mtd-cvs
mailing list