linux-stable/include/linux/mtd
Rouven Czerwinski f6ca3fb697 mtd: rawnand: Ensure the nand chip supports cached reads
Both the JEDEC and ONFI specification say that read cache sequential
support is an optional command. This means that we not only need to
check whether the individual controller supports the command, we also
need to check the parameter pages for both ONFI and JEDEC NAND flashes
before enabling sequential cache reads.

This fixes support for NAND flashes which don't support enabling cache
reads, i.e. Samsung K9F4G08U0F or Toshiba TC58NVG0S3HTA00.

Sequential cache reads are now only available for ONFI and JEDEC
devices, if individual vendors implement this, it needs to be enabled
per vendor.

Tested on i.MX6Q with a Samsung NAND flash chip that doesn't support
sequential reads.

Fixes: 003fe4b954 ("mtd: rawnand: Support for sequential cache reads")
Cc: stable@vger.kernel.org
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230922141717.35977-1-r.czerwinski@pengutronix.de
2023-10-16 10:47:22 +02:00
..
bbm.h
blktrans.h mtd: block: use a simple bool to track open for write 2023-06-12 08:04:04 -06:00
cfi_endian.h
cfi.h mtd: cfi_cmdset_0002: Use chip_ready() for write on S29GL064N 2022-04-28 10:17:10 +02:00
concat.h
doc2000.h
flashchip.h
ftl.h
gen_probe.h
hyperbus.h mtd: hyperbus: Make hyperbus_unregister_device() return void 2022-06-09 15:06:13 +02:00
inftl.h
jedec.h mtd: rawnand: Ensure the nand chip supports cached reads 2023-10-16 10:47:22 +02:00
lpc32xx_mlc.h
lpc32xx_slc.h
map.h
mtd.h mtd: use refcount to prevent corruption 2023-07-12 13:30:08 +02:00
mtdram.h
nand-ecc-mtk.h mtd: nand: make mtk_ecc.c a separated module 2022-04-27 18:12:35 +02:00
nand-ecc-mxic.h spi: mxic: Add support for pipelined ECC operations 2022-02-10 09:32:30 +01:00
nand-ecc-sw-bch.h
nand-ecc-sw-hamming.h
nand-gpio.h
nand.h mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase() 2022-11-07 17:17:20 +01:00
ndfc.h
nftl.h
onenand_regs.h
onenand.h
onfi.h mtd: rawnand: Ensure the nand chip supports cached reads 2023-10-16 10:47:22 +02:00
partitions.h
pfow.h
physmap.h
pismo.h
plat-ram.h
platnand.h
qinfo.h
rawnand.h mtd: rawnand: Ensure the nand chip supports cached reads 2023-10-16 10:47:22 +02:00
sh_flctl.h
sharpsl.h
spear_smi.h
spi-nor.h mtd: spi-nor: Stop exporting spi_nor_restore() 2023-04-04 09:43:50 +03:00
spinand.h mtd: spinand: add support for ESMT F50x1G41LB 2023-04-03 18:00:29 +02:00
super.h
ubi.h mtd: ubi: block: wire-up device parent 2023-02-13 22:24:10 +01:00
xip.h