]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
spi: fsl-lpspi: fix DMA termination issues
authorMark Brown <broonie@kernel.org>
Mon, 1 Jun 2026 14:08:08 +0000 (15:08 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 1 Jun 2026 14:08:08 +0000 (15:08 +0100)
Carlos Song (OSS) <carlos.song@oss.nxp.com> says:

This series fixes two issues in the fsl-lpspi DMA transfer error paths.

Patch 1 replaces the deprecated dmaengine_terminate_all() with
dmaengine_terminate_sync() across all error paths in
fsl_lpspi_dma_transfer().

Patch 2 fixes a missing RX DMA channel termination when TX descriptor
preparation fails. Since the RX channel is already submitted and issued
before the TX descriptor is prepared, returning -EINVAL without
terminating the RX channel leaves it running against buffers that the
SPI core will unmap, potentially causing memory corruption.

Link: https://patch.msgid.link/20260525062357.3191349-1-carlos.song@oss.nxp.com

Trivial merge