Skip to content

Commit ac803b5

Browse files
ambarusvinodkoul
authored andcommitted
dmaengine: at_hdmac: Convert driver to use virt-dma
Convert the driver to use the core virt-dma. The driver will be easier to maintain as it uses the list handling and the tasklet from virt-dma. With the conversion replace the election of a new transfer in the tasklet with the election of the new transfer in the interrupt handler. With this we have a shorter idle window as we remove the scheduling latency of the tasklet. I chose to do this while doing the conversion to virt-dma, because if I made a prerequisite patch with the new transfer election in the irq handler, I would have to duplicate some virt-dma code in the at_hdmac driver that would end up being removed at the virt-dma conversion anyway. So do this in a single step. Signed-off-by: Tudor Ambarus <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 993b397 commit ac803b5

File tree

2 files changed

+403
-706
lines changed

2 files changed

+403
-706
lines changed

drivers/dma/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ config AT_HDMAC
9797
tristate "Atmel AHB DMA support"
9898
depends on ARCH_AT91
9999
select DMA_ENGINE
100+
select DMA_VIRTUAL_CHANNELS
100101
help
101102
Support the Atmel AHB DMA controller.
102103

0 commit comments

Comments
 (0)