]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: stm32: properly fail on dma_request_chan error
authorAlain Volmat <alain.volmat@foss.st.com>
Thu, 18 Dec 2025 10:48:27 +0000 (11:48 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 18 Dec 2025 10:59:32 +0000 (10:59 +0000)
commitc266d19b7d4e5ed993ed9fca25ab9d11789c41ee
tree1f47112992d6899e3b7ff5d0aa9e9a78cc50ca68
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
spi: stm32: properly fail on dma_request_chan error

Correct handling of the dma_request_chan call in order to avoid
misleading warn message if no DMA is provided within the device-tree
and moreover fail if dma_request_chan has returned a valid error.

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