OSDN Git Service

spi: stm32-qspi: add automatic poll status feature
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 18 May 2021 16:27:54 +0000 (18:27 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jun 2021 13:04:58 +0000 (14:04 +0100)
commit86d1c6bbae32122c5f703b2d8acccf5d4258f2bb
treebb25857b3c8f62cf4681893e610797524883ffb0
parent8941cd8d295e40f8ea1c0a5045d6d068b8e33eec
spi: stm32-qspi: add automatic poll status feature

STM32 QSPI is able to automatically poll a specified register inside the
memory and relieve the CPU from this task.

As example, when erasing a large memory area, we got cpu load
equal to 50%. This patch allows to perform the same operation
with a cpu load around 2%.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20210518162754.15940-4-patrice.chotard@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-qspi.c