]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: stm32-qspi: Remove CR_TCIE and CR_TEIE irq usage
authorPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 8 Dec 2025 07:29:14 +0000 (08:29 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:39:08 +0000 (19:39 +0900)
commitc5f76d888810bca2d46297a7b942e10bc8cc69dd
tree72f84ee87dc1d8cb5f7c5660a070df044c2bd158
parent1ca91281649547efa4be34584a304974c9601df1
spi: stm32-qspi: Remove CR_TCIE and CR_TEIE irq usage

Replace CR_TCIE and CR_TEIE irq usage by a read_poll_timeout_atomic() in
stm32_qspi_wait_cmd(). It will reduce the time waiting for TCF or TEF flags
to optimize throughput.
before after
average time spent in stm32_qspi_wait_cmd: 2615 ns 712 ns

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://patch.msgid.link/20251208-upstream_qspi_ospi_updates-v2-7-62526c9467dc@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-qspi.c