]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: stm32: perform small transfer in polling mode
authorAlain Volmat <alain.volmat@foss.st.com>
Thu, 18 Dec 2025 10:48:29 +0000 (11:48 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 18 Dec 2025 10:59:34 +0000 (10:59 +0000)
commitb39ef93a2e5b5f4289a3486d8a94a09a1e6a4c67
treeebd80be5077d3717bf462568087d0086831023d4
parent1ac3be217c01d5df55ec5052f81e4f1708f46552
spi: stm32: perform small transfer in polling mode

In case of interrupt based transfer, when the transfer is very
small, relying on interrupts leads to lower performances than if
the transfer were done using polling on the registers.

Add a module parameter "polling_limit_us" to indicate the threshold
in us from which a transfer would be done polling the registers rather
than relying on interrupts.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://patch.msgid.link/20251218-stm32-spi-enhancements-v2-3-3b69901ca9fe@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c