From: Mark Brown Date: Mon, 1 Jun 2026 14:08:08 +0000 (+0100) Subject: spi: fsl-lpspi: fix DMA termination issues X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=f9df47af4150ab17c20711ef553c77cff746b1ac;p=thirdparty%2Fkernel%2Flinux.git spi: fsl-lpspi: fix DMA termination issues Carlos Song (OSS) 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 --- f9df47af4150ab17c20711ef553c77cff746b1ac