spi: imx: handle DMA submission errors with dma_submit_error()

Add error handling for DMA request submission by checking the return
cookie with dma_submit_error(). This prevents propagating submission
failures through the DMA transfer process, which could lead to
unexpected behavior.

Signed-off-by: Carlos Song <carlos.song@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251203085949.2922166-5-carlos.song@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Carlos Song 2025-12-03 16:59:47 +08:00 • committed by Mark Brown
commit a450c8b77f
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0