linux-stable/drivers/mtd
Pratyush Yadav 30860998ca spi: cadence-quadspi: Abort read if dummy cycles required are too many
[ Upstream commit ceeda328ed ]

The controller can only support up to 31 dummy cycles. If the command
requires more it falls back to using 31. This command is likely to fail
because the correct number of cycles are not waited upon. Rather than
silently issuing an incorrect command, fail loudly so the caller can get
a chance to find out the command can't be supported by the controller.

Fixes: 1406234105 ("mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller")
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20201222184425.7028-3-p.yadav@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-03 18:22:44 +01:00
..
chips mtd: cfi_cmdset_0002: don't free cfi->cfiq in error path of cfi_amdstd_setup() 2020-10-01 13:12:28 +02:00
devices mtd: phram: fix a double free issue in error path 2020-04-24 08:01:24 +02:00
lpddr mtd: lpddr: fix excessive stack usage with clang 2020-10-29 09:07:08 +01:00
maps mtd: physmap_of: Release resources on error 2019-11-24 08:23:08 +01:00
nand mtd: rawnand: sunxi: Fix the probe error path 2020-10-14 09:51:11 +02:00
onenand
parsers
spi-nor spi: cadence-quadspi: Abort read if dummy cycles required are too many 2021-03-03 18:22:44 +01:00
tests
ubi ubi: check kthread_should_stop() after the setting of task state 2020-11-05 11:07:03 +01:00
afs.c
ar7part.c
bcm47xxpart.c
bcm63xxpart.c
cmdlinepart.c mtd: parser: cmdline: Fix parsing of part-names with colons 2020-12-29 13:47:10 +01:00
ftl.c
inftlcore.c
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c mtd: properly check all write ioctls for permissions 2020-08-21 09:47:58 +02:00
mtdconcat.c
mtdcore.c
mtdcore.h mtd: Check add_mtd_device() ret code 2019-12-05 15:37:54 +01:00
mtdoops.c mtd: mtdoops: Don't write panic data twice 2020-10-29 09:07:08 +01:00
mtdpart.c mtd: Remove a debug trace in mtdpart.c 2019-12-05 15:38:04 +01:00
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c