[PATCH 3/8] dmaengine: split out virtual channel DMA support from sa11x0 driver

From
Laxman Dewangan <ldewangan@nvidia.com>
Date
2012-04-24 10:57:14
Also in
linux-mmc, linux-omap
Reply to
Russell King - ARM Linux, 2012-04-24
On Tuesday 24 April 2012 04:20 PM, Russell King - ARM Linux wrote:
quoted
For cyclic case, we will not like to call the  dma_cookie_complete() but
want to put the desc in callback list.
So can we have one more arg on this function which byspass the call of
dma_cookie_complete()
See the discussion on what's supposed to happen with cyclic transfers.
Cyclic transfers don't complete, so adding them to the completed list
and marking them complete is the wrong thing to be doing.  So arguably
calling this function is also the wrong thing to be doing because
you're not completing the transfer.
OK, we will not call this function but still need to call the callback. 
So do you suggest to call callback directly from dma driver rather than 
the virt_chan?
I'll be addressing the issue of cyclic transfers when I eventually get
to sorting out the OMAP ASoC driver.
Here I am developing the dma driver for Tegra in cyclic and normal mode 
and what is your suggestion here?
Should I use your virt_chan now or I can go ahead with my first patch 
without virt_chan and once you are done with your virt_chan with all 
cyclic support then  port the tegra_dma to use virt chan and next 
enhanced patch?

In this way, my Tegra dma will be there in tree, all client will be move 
to dma engine based driver and then I will comeback to tegra_dma for 
using the virt_channel.
Thread (56 messages) 56 messages, 9 authors, last reply 2012-04-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help