[PATCH v3 1/2] dmaengine: virt-dma: share the DMAengine synchronization callback
Keguang Zhang
keguang.zhang at gmail.com
Thu Oct 29 05:13:08 PDT 2026
On Wed, Oct 28, 2026 at 2:43 AM James Hilliard
<james.hilliard1 at gmail.com> wrote:
>
> Several virt-dma drivers implement device_synchronize with a wrapper that
> only converts the DMA channel and calls vchan_synchronize(). Provide
> vchan_dma_synchronize() with the DMAengine callback signature so these
> drivers can assign it directly.
>
> Document the requirement to stop the channel and prevent new callbacks
> before synchronization, and the context in which the callback wait may
> run. Replace the equivalent wrappers in the existing drivers with the
> shared helper, preserving their callback-wait and descriptor-cleanup
> behavior.
>
> Suggested-by: Frank Li <Frank.li at oss.nxp.com>
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> ...
> drivers/dma/loongson/loongson1-apb-dma.c | 7 +------
Reviewed-by: Keguang Zhang <keguang.zhang at gmail.com> # loongson1, virt-dma
--
Best regards,
Keguang Zhang
More information about the Linux-mediatek
mailing list