[PATCH v2] mtd: rawnand: lpc32xx_slc: fail DMA transfer on completion timeout
Miquel Raynal
miquel.raynal at bootlin.com
Sun Jul 5 23:24:24 PDT 2026
On Fri, 03 Jul 2026 15:39:43 +0800, Pengpeng Hou wrote:
> lpc32xx_xmit_dma() waits for the DMA completion callback but ignores
> wait_for_completion_timeout(). A timed out DMA transfer is therefore
> unmapped and reported as successful to the NAND read/write path.
>
> Return -ETIMEDOUT when the completion wait expires. Terminate the DMA
> channel before unmapping the scatterlist so the timed out transfer cannot
> continue to access the buffer after the error is returned.
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] mtd: rawnand: lpc32xx_slc: fail DMA transfer on completion timeout
commit: 17a8ce84964f243c8f89dc7353ac7e8d3137bc74
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
More information about the linux-arm-kernel
mailing list