Re: [PATCH v3 1/2] dmaengine: virt-dma: share the DMAengine synchronization callback
From: Andy Shevchenko
Date: Wed Oct 28 2026 - 04:04:33 EST
On Tue, Oct 27, 2026 at 12:22:26PM -0600, James Hilliard 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.
...
> drivers/dma/hsu/hsu.c | 9 +--------
> drivers/dma/idma64.c | 9 +--------
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> # hsu, idma64, virt-dma
--
With Best Regards,
Andy Shevchenko