mtd: rawnand: meson: invalidate cache on polling ECC bit
stable inclusion from stable-v5.10.177 commit 4a81e2da7297f0518e27308f8fcc41db380d4fbc category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4a81e2da7297f0518e27308f8fcc41db380d4fbc -------------------------------- [ Upstream commit e732e39e ] '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: 8fae856c ("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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment