OrangePi_CM5/drivers/mtd
Miquel Raynal 705dfc4575 mtd: rawnand: arasan: Prevent an unsupported configuration
commit fc9e18f9e987ad46722dad53adab1c12148c213c upstream.

Under the following conditions:
* after rounding up by 4 the number of bytes to transfer (this is
  related to the controller's internal constraints),
* if this (rounded) amount of data is situated beyond the end of the
  device,
* and only in NV-DDR mode,
the Arasan NAND controller timeouts.

This currently can happen in a particular helper used when picking
software ECC algorithms. Let's prevent this situation by refusing to use
the NV-DDR interface with software engines.

Fixes: 4edde6031458 ("mtd: rawnand: arasan: Support NV-DDR interface")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211008163640.1753821-1-miquel.raynal@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-21 15:16:26 +02:00
..
chips mtd: cfi_cmdset_0002: Use chip_ready() for write on S29GL064N 2022-06-09 10:21:25 +02:00
devices mtd: st_spi_fsm: Add a clk_disable_unprepare() in .probe()'s error path 2022-08-21 15:15:53 +02:00
hyperbus
…
lpddr
…
maps mtd: maps: Fix refcount leak in ap_flash_init 2022-08-21 15:15:52 +02:00
nand mtd: rawnand: arasan: Prevent an unsupported configuration 2022-08-21 15:16:26 +02:00
parsers mtd: partitions: Fix refcount leak in parse_redboot_of 2022-08-21 15:15:53 +02:00
spi-nor mtd: spi-nor: core: Check written SR value in spi_nor_write_16bit_sr_and_check() 2022-06-09 10:21:03 +02:00
tests
…
ubi ubi: ubi_create_volume: Fix use-after-free when volume creation failed 2022-06-14 18:32:35 +02:00
Kconfig
…
Makefile
…
ftl.c
…
inftlcore.c
…
inftlmount.c
…
mtd_blkdevs.c
…
mtdblock.c
…
mtdblock_ro.c
…
mtdchar.c
…
mtdconcat.c
…
mtdcore.c
…
mtdcore.h
…
mtdoops.c
…
mtdpart.c
…
mtdpstore.c
…
mtdsuper.c
…
mtdswap.c
…
nftlcore.c
…
nftlmount.c
…
rfd_ftl.c
…
sm_ftl.c mtd: sm_ftl: Fix deadlock caused by cancel_work_sync in sm_release 2022-08-21 15:15:53 +02:00
sm_ftl.h
…
ssfdc.c
…