linux-stable/drivers/mtd/nand
Arseniy Krasnov 34c554376e mtd: rawnand: meson: invalidate cache on polling ECC bit
[ Upstream commit e732e39ed9 ]

'info_buf' memory is cached and driver polls ECC bit in it. This bit
is set by the NAND controller. If 'usleep_range()' returns before device
sets this bit, 'info_buf' will be cached and driver won't see update of
this bit and will loop forever.

Fixes: 8fae856c53 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/d4ef0bd6-816e-f6fa-9385-f05f775f0ae2@sberdevices.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-05 11:24:55 +02:00
..
onenand mtd: onenand: Check for error irq 2022-04-08 14:23:25 +02:00
raw mtd: rawnand: meson: invalidate cache on polling ECC bit 2023-04-05 11:24:55 +02:00
spi mtd: spinand: gigadevice: fix Quad IO for GD5F1GQ5UExxG 2022-06-09 10:22:45 +02:00
bbt.c mtd: nand: bbt: Fix corner case in bad block table handling 2021-05-10 18:20:54 +02:00
core.c
ecc-sw-bch.c mtd: nand: ecc-bch: Use the public nsteps field 2021-03-11 09:37:28 +01:00
ecc-sw-hamming.c mtd: nand: ecc-hamming: Use the public nsteps field 2021-03-11 09:37:28 +01:00
ecc.c
Kconfig
Makefile