mtd: spinand: use the spi-mem poll status APIs
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 18 May 2021 16:27:53 +0000 (18:27 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jun 2021 13:04:57 +0000 (14:04 +0100)
commit8941cd8d295e40f8ea1c0a5045d6d068b8e33eec
tree7079a3f7ca62ac028fa42908f85d8781169ddf0b
parentc955a0cc8a286e5da1ebb88c19201e9bab8c2422
mtd: spinand: use the spi-mem poll status APIs

Make use of spi-mem poll status APIs to let advanced controllers
optimize wait operations.
This should also fix the high CPU usage for system that don't have
a dedicated STATUS poll block logic.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20210518162754.15940-3-patrice.chotard@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/mtd/nand/spi/core.c
include/linux/mtd/spinand.h