Re: [PATCH 1/3] dmaengine: add dmaengine_async_is_tx_complete() for channel status queries
From: Daniel Byrne
Date: Mon Nov 30 2026 - 15:09:07 EST
On Mon, 19 Oct 2026 18:36:46 +0000, Frank Li wrote:
> Does it should wrap dmaengine_tx_status()? from naming conversion
>
> dmaengine_async_is_tx_complete() should return bool type.
>
>
> I don't that it is true. Supposed user can always poll state regardless if
> set DMA_PREP_INTERRUPT.
>
>
>
> Use sperate patch for such movement.
>
> Frank
> Does it should wrap dmaengine_tx_status()? from naming conversion
Yes, v2 calls dmaengine_tx_status() instead of reaching into the
device ops.
> dmaengine_async_is_tx_complete() should return bool type.
It keeps enum dma_status, like dma_async_is_tx_complete() that it
replaces, a polling client has to tell DMA_ERROR from DMA_COMPLETE,
and dma_sync_wait() and dmatest use each.
> I don't that it is true. Supposed user can always poll state regardless if
> set DMA_PREP_INTERRUPT.
Sorry, I should have clarified. Any cookie can be queried either way.
What the flag changes is where the result goes, without it the query
is the only place the transaction reports, and on a provider that
tracks per-descriptor state the query that sees it end retires the
descriptor. With it, the provider completes the descriptor and reports
through callback_result, and the query only reports whether it has ended.
v2's kernel-doc and message will state that.
> Use sperate patch for such movement.
Done, it is its own patch in v2.
Thanks,
Daniel