]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: stm32: fix rx DMA request error handling
authorAlain Volmat <alain.volmat@foss.st.com>
Thu, 12 Feb 2026 11:49:10 +0000 (12:49 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 23 Feb 2026 12:17:52 +0000 (12:17 +0000)
commit837f6691d5f39ea6453e4489dded40fb17755c60
treec219a17c2618c716f5d93b81ac7d08a9eda4b89c
parent20a88c156f37634fdd88b746fa34e3622f567130
spi: stm32: fix rx DMA request error handling

Avoid trying to release the RX DMA channel when an error occurs
during RX dma_request_chan() call. Instead, jump directly to
release the TX channel, if applicable.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-spi/aYXvY6NH7OlZ-OAF@stanley.mountain/T/#u
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://patch.msgid.link/20260212-spi-stm32-fix-dma-rx-release-v1-1-53a37c31626b@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c