Commit c266d19
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>1 parent 8f0b4cc commit c266d19
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2406 | 2406 | | |
2407 | 2407 | | |
2408 | 2408 | | |
2409 | | - | |
2410 | | - | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
2411 | 2414 | | |
2412 | | - | |
2413 | | - | |
| 2415 | + | |
2414 | 2416 | | |
2415 | 2417 | | |
2416 | 2418 | | |
2417 | 2419 | | |
2418 | 2420 | | |
2419 | 2421 | | |
2420 | 2422 | | |
2421 | | - | |
2422 | | - | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
2423 | 2428 | | |
2424 | | - | |
2425 | | - | |
| 2429 | + | |
2426 | 2430 | | |
2427 | 2431 | | |
2428 | 2432 | | |
| |||
0 commit comments