Re: [PATCH] ata: pata_pxa: fix the inverted DMA completion timeout check
From: Niklas Cassel
Date: Mon Nov 02 2026 - 12:24:06 EST
On Sat, 31 Oct 2026 22:20:02 +0800, shao.mingyin@xxxxxxxxxx wrote:
> pxa_bmdma_stop() waits for the DMA completion that pxa_ata_dma_irq()
> signals and reports a timeout when the wait fails. The condition is
> inverted: wait_for_completion_timeout() returns zero on timeout, but the
> driver prints "Timeout waiting for DMA completion!" when the return value
> is non-zero, that is when the DMA actually completed. A real timeout is
> silent.
>
> [...]
Since Linus prefers receiving untested AI patches during the merge window:
https://lore.kernel.org/lkml/CAHk-=whOCnAwXz-FMRdQEDJQ+9b2YXh9M=GHgRay0o4cxSmPVg@xxxxxxxxxxxxxx/
Applied to libata/linux.git (for-7.5), thanks!
[1/1] ata: pata_pxa: fix the inverted DMA completion timeout check
https://git.kernel.org/libata/linux/c/aa99a446
Kind regards,
Niklas