]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: imx: avoid dmaengine_terminate_all() on TX prep failure
authorCarlos Song <carlos.song@nxp.com>
Wed, 3 Dec 2025 08:59:46 +0000 (16:59 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:38:49 +0000 (19:38 +0900)
commita5f298581d454c5ea77c5fb6f4ee1bff61eb2b2c
treecedfc7612912c5e00419d2a93121ed066658eca3
parent5395bb7f7c361310d0f329c8169d2190809b05c1
spi: imx: avoid dmaengine_terminate_all() on TX prep failure

If dmaengine_prep_slave_sg() fails, no descriptor is submitted to the TX
channel and DMA is never started. Therefore, calling
dmaengine_terminate_all() for the TX DMA channel is unnecessary.

Signed-off-by: Carlos Song <carlos.song@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251203085949.2922166-4-carlos.song@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c