Re: RFC: changing DMA slave configuration API

2012-08-14 Thread Linus Walleij
On Mon, Jun 11, 2012 at 6:50 AM, Vinod Koul wrote: > Do we have any users of peripheral to peripheral slave dma? > IIRC that is not the case, or does anyone know of existence or plans > for such a h/w? The U300 (COH901318) device can do this. The usecase is basically that the modem CPU sets up

Re: RFC: changing DMA slave configuration API

2012-06-11 Thread Vinod Koul
On Mon, 2012-06-11 at 09:24 +0100, Russell King - ARM Linux wrote: > On Mon, Jun 11, 2012 at 10:20:49AM +0530, Vinod Koul wrote: > > I think it is a good idea. And I would like to extend it even a little > > bit. Do we have any users of peripheral to peripheral slave dma? > > IIRC that is not the

Re: RFC: changing DMA slave configuration API

2012-06-11 Thread Vinod Koul
On Mon, 2012-06-11 at 17:33 +0800, Dong Aisheng wrote: > > I think it is a good idea. And I would like to extend it even a > little > > bit. Do we have any users of peripheral to peripheral slave dma? > Yes, IMX sdma does support such kind of transfer. > The driver still does not support it current

Re: RFC: changing DMA slave configuration API

2012-06-11 Thread David Brown
On Mon, Jun 11, 2012 at 10:20:49AM +0530, Vinod Koul wrote: > I think it is a good idea. And I would like to extend it even a little > bit. Do we have any users of peripheral to peripheral slave dma? > IIRC that is not the case, or does anyone know of existence or plans > for such a h/w? We have

Re: RFC: changing DMA slave configuration API

2012-06-11 Thread Dong Aisheng
On Mon, Jun 11, 2012 at 10:20:49AM +0530, Vinod Koul wrote: > On Sun, 2012-06-10 at 12:22 +0100, Russell King - ARM Linux wrote: > > On Sun, Jun 10, 2012 at 07:19:47PM +0800, Barry Song wrote: > > > 2012/6/10 Russell King - ARM Linux : > > > > Dan, Vinod, > > > > > > > > There's a change I would li

Re: RFC: changing DMA slave configuration API

2012-06-11 Thread Russell King - ARM Linux
On Mon, Jun 11, 2012 at 10:20:49AM +0530, Vinod Koul wrote: > I think it is a good idea. And I would like to extend it even a little > bit. Do we have any users of peripheral to peripheral slave dma? > IIRC that is not the case, or does anyone know of existence or plans > for such a h/w? > > If n

Re: RFC: changing DMA slave configuration API

2012-06-10 Thread Vinod Koul
On Sun, 2012-06-10 at 12:22 +0100, Russell King - ARM Linux wrote: > On Sun, Jun 10, 2012 at 07:19:47PM +0800, Barry Song wrote: > > 2012/6/10 Russell King - ARM Linux : > > > Dan, Vinod, > > > > > > There's a change I would like to do to the DMA slave configuration. > > > It's currently a pain to

Re: RFC: changing DMA slave configuration API

2012-06-10 Thread Russell King - ARM Linux
On Sun, Jun 10, 2012 at 07:19:47PM +0800, Barry Song wrote: > 2012/6/10 Russell King - ARM Linux : > > Dan, Vinod, > > > > There's a change I would like to do to the DMA slave configuration. > > It's currently a pain to have the source and destination parameters in > > the dma_slave_config structur

Re: RFC: changing DMA slave configuration API

2012-06-10 Thread Barry Song
2012/6/10 Russell King - ARM Linux : > Dan, Vinod, > > There's a change I would like to do to the DMA slave configuration. > It's currently a pain to have the source and destination parameters in > the dma_slave_config structure as separate elements; it means when you > want to extract them, you en

RFC: changing DMA slave configuration API

2012-06-10 Thread Russell King - ARM Linux
Dan, Vinod, There's a change I would like to do to the DMA slave configuration. It's currently a pain to have the source and destination parameters in the dma_slave_config structure as separate elements; it means when you want to extract them, you end up with code in DMA engine drivers like: +