[RFC 03/34] dmaengine: virt-dma: add support for cyclic DMA periodic callbacks

Linus Walleij linus.walleij at linaro.org
Wed May 30 03:52:53 EDT 2012


On Tue, May 29, 2012 at 5:36 PM, Russell King
<rmk+kernel at arm.linux.org.uk> wrote:

> Add support for cyclic DMA's periodic callbacks.  Drivers are expected
> to call vchan_cyclic_callback() when a period has completed, which will
> schedule the tasklet to make the callback into the driver.
>
> As callbacks are made from tasklet context, it is important to realise
> that we don't guarantee a callback for each completed period, but for
> N completed periods where N may be greater than one.

This last thing was something we have to fix right?
Like for each driver to keep a counter of completed periods
and call the handler repeatedly if N > 1.

Anyway this doesn't make the problem worse in any way so
Acked-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list