]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: imx: handle DMA submission errors with dma_submit_error()
authorCarlos Song <carlos.song@nxp.com>
Wed, 3 Dec 2025 08:59:47 +0000 (16:59 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:38:50 +0000 (19:38 +0900)
commita450c8b77f929f5f9f5236861761a8c5cab22023
treeeb77b96bb23b44bc315e365775d6b0034f865f38
parenta5f298581d454c5ea77c5fb6f4ee1bff61eb2b2c
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>
drivers/spi/spi-imx.c