Re: [PATCH v4] dmaengine: dw-axi-dmac: report paused state and residue in tx_status

From: Rui Wang

Date: Wed Sep 23 2026 - 22:57:13 EST


Hi Frank,

Thanks for the review!

On Wed, Sep 23, 2026 at 02:23:34PM -0500, Frank Li wrote:
> common pattern for this type problem is use do while loop.

Good point, switched to the do/while loop in v5.

> suppose you should call DMA done handle here. return length -1 is workaround

Agreed it was a workaround; dropped it in v5. Running the completion
handling from tx_status would race with the real completion interrupt,
which would then find no descriptor to reap, so I prefer to keep
tx_status query-only. With the chan->desc matching, a descriptor that
was never started can no longer alias the stale pointer of a previous
transfer; the remaining stale-read window is bounded by the first LLI
fetch after channel enable.

> now direct use min()

Done.

Best regards,
Rui Wang