[RFC PATCH v1] mtd: rawnand: meson: invalidate cache on polling ECC bit

Miquel Raynal miquel.raynal at bootlin.com
Wed Mar 22 09:07:48 PDT 2023


On Mon, 2023-03-13 at 07:32:44 UTC, Arseniy Krasnov wrote:
> '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: 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
> Signed-off-by: Arseniy Krasnov <AVKrasnov at sberdevices.ru>
> Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.

Miquel



More information about the linux-arm-kernel mailing list