Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

authored by

Prabhakar Kushwaha and committed by
Boris Brezillon
d1ab0da8 0d3a966d

+1 -1
+1 -1
drivers/mtd/nand/fsl_ifc_nand.c
··· 913 913 chip->ecc.algo = NAND_ECC_HAMMING; 914 914 } 915 915 916 - if (ctrl->version == FSL_IFC_VERSION_1_1_0) 916 + if (ctrl->version >= FSL_IFC_VERSION_1_1_0) 917 917 fsl_ifc_sram_init(priv); 918 918 919 919 return 0;