Re: [PATCH 7/7] dmaengine: omap-dma: Support for LinkedList transfer of slave_sg

2016-07-18 Thread Peter Ujfalusi
On 07/18/16 13:42, Russell King - ARM Linux wrote: > On Thu, Jul 14, 2016 at 03:42:42PM +0300, Peter Ujfalusi wrote: >> struct omap_desc { >> +struct omap_chan *c; >> struct virt_dma_desc vd; > > No need for this. to_omap_dma_chan(foo->vd.tx.chan) will give you the > omap_chan for the d

Re: [PATCH 7/7] dmaengine: omap-dma: Support for LinkedList transfer of slave_sg

2016-07-18 Thread Russell King - ARM Linux
On Thu, Jul 14, 2016 at 03:42:42PM +0300, Peter Ujfalusi wrote: > struct omap_desc { > + struct omap_chan *c; > struct virt_dma_desc vd; No need for this. to_omap_dma_chan(foo->vd.tx.chan) will give you the omap_chan for the descriptor. In any case, I question whether you actually nee

[PATCH 7/7] dmaengine: omap-dma: Support for LinkedList transfer of slave_sg

2016-07-14 Thread Peter Ujfalusi
sDMA in OMAP3630 or newer SoC have support for LinkedList transfer. When LinkedList or Descriptor load feature is present we can create the descriptors for each and program sDMA to walk through the list of descriptors instead of the current way of sDMA stop, sDMA reconfiguration and sDMA start afte