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>
This commit is contained in:
Alain Volmat 2025-12-18 11:48:27 +01:00 • committed by Mark Brown
commit c266d19b7d
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0