linux/drivers/mtd/nand
Jagdish Gediya 843c3a5999 mtd: nand: fsl_ifc: Fix eccstat array overflow for IFC ver >= 2.0.0
Number of ECC status registers i.e. (ECCSTATx) has been increased in IFC
version 2.0.0 due to increase in SRAM size. This is causing eccstat
array to over flow.

So, replace eccstat array with u32 variable to make it fail-safe and
independent of number of ECC status registers or SRAM size.

Fixes: bccb06c353 ("mtd: nand: ifc: update bufnum mask for ver >= 2.0.0")
Cc: stable@vger.kernel.org # 3.18+
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Signed-off-by: Jagdish Gediya <jagdish.gediya@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
2018-03-21 10:18:34 +01:00
..
atmel mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
bcm47xxnflash License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
brcmnand MTD changes: 2018-01-29 11:11:56 -08:00
gpmi-nand MTD changes: 2018-01-29 11:11:56 -08:00
ams-delta.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
au1550nd.c mtd: nand: introduce NAND_ROW_ADDR_3 flag 2017-09-18 14:55:52 +02:00
bf5xx_nand.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
cafe_nand.c mtd: nand: cafe: clean up DMA address setup 2017-12-14 13:34:20 +01:00
cmx270_nand.c mtd: constify mtd_partition 2017-11-06 23:26:01 +01:00
cs553x_nand.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
davinci_nand.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
denali_dt.c mtd: nand: denali: clean up comments 2017-09-22 09:04:32 +02:00
denali_pci.c mtd: nand: denali_pci: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE 2017-11-30 22:32:48 +01:00
denali.c mtd: nand: denali: Avoid using ecc->code_buf as a temporary buffer 2017-12-14 13:34:22 +01:00
denali.h mtd: nand: remove unnecessary extern from driver headers 2017-11-30 22:32:49 +01:00
diskonchip.c mtd: nand: provide several helpers to do common NAND operations 2017-12-14 13:34:12 +01:00
docg4.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
fsl_elbc_nand.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
fsl_ifc_nand.c mtd: nand: fsl_ifc: Fix eccstat array overflow for IFC ver >= 2.0.0 2018-03-21 10:18:34 +01:00
fsl_upm.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
fsmc_nand.c mtd: nand: squash struct nand_buffers into struct nand_chip 2017-12-14 13:34:19 +01:00
gpio.c mtd: nand: gpio: Fix ALE gpio configuration 2017-12-15 22:27:54 +01:00
hisi504_nand.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
jz4740_nand.c mtd: nand: provide several helpers to do common NAND operations 2017-12-14 13:34:12 +01:00
jz4780_bch.c mtd: nand: jz4780: Update MODULE_AUTHOR email address 2016-07-11 08:40:19 +02:00
jz4780_bch.h mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs 2016-01-07 09:35:11 -08:00
jz4780_nand.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
Kconfig mtd: nand: MTD_NAND_MARVELL should depend on HAS_DMA 2018-02-12 10:57:20 +01:00
lpc32xx_mlc.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
lpc32xx_slc.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
Makefile mtd: nand: add reworked Marvell NAND controller driver 2018-01-12 15:17:06 +01:00
marvell_nand.c mtd: nand: marvell: Fix missing memory allocation modifier 2018-01-20 10:37:50 +01:00
mpc5121_nfc.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
mtk_ecc.c mtd: nand: mtk: Support MT7622 NAND flash controller. 2017-12-14 13:34:22 +01:00
mtk_ecc.h mtd: nand: mtk: Support different MTK NAND flash controller IP 2017-12-14 13:34:21 +01:00
mtk_nand.c mtd: nand: mtk: Support MT7622 NAND flash controller. 2017-12-14 13:34:22 +01:00
mxc_nand.c mtd: nand: mxc: use dev_dbg to print debug messages 2017-10-16 17:57:08 +02:00
nand_amd.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
nand_base.c Core changes: 2018-01-29 09:58:36 +01:00
nand_bbt.c mtd: nand: squash struct nand_buffers into struct nand_chip 2017-12-14 13:34:19 +01:00
nand_bch.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
nand_ecc.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
nand_hynix.c mtd: nand: add ->exec_op() implementation 2017-12-16 14:40:26 +01:00
nand_ids.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
nand_macronix.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
nand_micron.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
nand_samsung.c mtd: nand: samsung: Disable subpage writes on E-die NAND 2018-01-10 09:45:04 +01:00
nand_timings.c mtd: nand: provide valid ->data_interface during NAND detection 2017-12-14 13:34:18 +01:00
nand_toshiba.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
nandsim.c mtd: Avoid probe failures when mtd->dbg.dfs_dir is invalid 2017-11-13 22:07:31 +01:00
ndfc.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
nuc900_nand.c mtd: nand: introduce NAND_ROW_ADDR_3 flag 2017-09-18 14:55:52 +02:00
omap2.c mtd: nand: squash struct nand_buffers into struct nand_chip 2017-12-14 13:34:19 +01:00
omap_elm.c mtd: omap_elm: print interrupt resource using %pr 2015-12-18 10:16:17 -08:00
orion_nand.c Merge branch 'nand/rename-header-file' of git://git.infradead.org/l2-mtd into nand/next 2017-08-23 17:00:12 +02:00
oxnas_nand.c Merge branch 'nand/rename-header-file' of git://git.infradead.org/l2-mtd into nand/next 2017-08-23 17:00:12 +02:00
pasemi_nand.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
plat_nand.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
pxa3xx_nand.c MTD changes: 2018-01-29 11:11:56 -08:00
qcom_nandc.c dma mapping changes for Linux 4.16: 2018-01-31 11:32:27 -08:00
r852.c mtd: nand: provide several helpers to do common NAND operations 2017-12-14 13:34:12 +01:00
r852.h mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
s3c2410.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
sh_flctl.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
sharpsl.c Merge branch 'nand/rename-header-file' of git://git.infradead.org/l2-mtd into nand/next 2017-08-23 17:00:12 +02:00
sm_common.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
sm_common.h mtd: nand: remove unnecessary extern from driver headers 2017-11-30 22:32:49 +01:00
socrates_nand.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
sunxi_nand.c mtd: nand: sunxi: Fix ECC strength choice 2018-01-25 09:14:32 +01:00
tango_nand.c mtd: nand: force drivers to explicitly send READ/PROG commands 2017-12-14 13:34:17 +01:00
tmio_nand.c mtd: nand: provide several helpers to do common NAND operations 2017-12-14 13:34:12 +01:00
txx9ndfmc.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
vf610_nfc.c mtd: nand: vf610: set correct ooblayout 2018-02-12 10:56:36 +01:00
xway_nand.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00