RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-05 Thread Lu Jingchang-B35083
ubject: Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support > > On Tue, Sep 03, 2013 at 05:43:21AM +, Lu Jingchang-B35083 wrote: > > Do you mean the DMA_SLAVE_CONFIG device_control? Yeah, the slave > driver could pass > > the slave_id. But the DMA

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-05 Thread Lu Jingchang-B35083
] dma: Add Freescale eDMA engine driver support On Tue, Sep 03, 2013 at 05:43:21AM +, Lu Jingchang-B35083 wrote: Do you mean the DMA_SLAVE_CONFIG device_control? Yeah, the slave driver could pass the slave_id. But the DMA_SLAVE_CONFIG may be called more than once, and the eDMA driver

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-03 Thread Lu Jingchang-B35083
ubject: Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support > > On Tue, Sep 03, 2013 at 05:43:21AM +, Lu Jingchang-B35083 wrote: > > Do you mean the DMA_SLAVE_CONFIG device_control? Yeah, the slave > driver could pass > > the slave_id. But the DMA

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-03 Thread Vinod Koul
On Tue, Sep 03, 2013 at 05:43:21AM +, Lu Jingchang-B35083 wrote: > Do you mean the DMA_SLAVE_CONFIG device_control? Yeah, the slave driver > could pass > the slave_id. But the DMA_SLAVE_CONFIG may be called more than once, and the > eDMA > driver just needs to set the slave id once for any

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-03 Thread Lu Jingchang-B35083
] dma: Add Freescale eDMA engine driver support On Tue, Sep 03, 2013 at 05:43:21AM +, Lu Jingchang-B35083 wrote: Do you mean the DMA_SLAVE_CONFIG device_control? Yeah, the slave driver could pass the slave_id. But the DMA_SLAVE_CONFIG may be called more than once, and the eDMA driver

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-03 Thread Vinod Koul
On Tue, Sep 03, 2013 at 05:43:21AM +, Lu Jingchang-B35083 wrote: Do you mean the DMA_SLAVE_CONFIG device_control? Yeah, the slave driver could pass the slave_id. But the DMA_SLAVE_CONFIG may be called more than once, and the eDMA driver just needs to set the slave id once for any

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Lu Jingchang-B35083
> > How about change the filter_fn to follow: > > static bool fsl_edma_filter_fn(struct dma_chan *chan, void *fn_param) > > { > > struct fsl_edma_filter_param *fparam = fn_param; > > struct fsl_edma_chan *fsl_chan = to_fsl_edma_chan(chan); > > unsigned char val; > > > >

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Vinod Koul
On Mon, Sep 02, 2013 at 07:32:53AM +, Lu Jingchang-B35083 wrote: > > > > > > > + chan->private = fn_param; > > > > > > why do you need to use chan->private? > > > > > [Lu Jingchang] > > > > > The private used here is to store the slot_id information, which > > must > > > > be used > > > > > by

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Lu Jingchang-B35083
, 2013 12:51 PM > > > To: Lu Jingchang-B35083 > > > Cc: shawn@linaro.org; linux-kernel@vger.kernel.org; linux-arm- > > > ker...@lists.infradead.org; devicet...@vger.kernel.org > > > Subject: Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Vinod Koul
nel@vger.kernel.org; linux-arm- > > ker...@lists.infradead.org; devicet...@vger.kernel.org > > Subject: Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support > > > > On Thu, Aug 29, 2013 at 03:32:04AM +, Lu Jingchang-B35083 wrote: > > > > Please use

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Lu Jingchang-B35083
ubject: Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support > > On Thu, Aug 29, 2013 at 03:32:04AM +, Lu Jingchang-B35083 wrote: > > Please use a right MUA and wrap your lines at 80chars... > > > > >

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Lu Jingchang-B35083
] dma: Add Freescale eDMA engine driver support On Thu, Aug 29, 2013 at 03:32:04AM +, Lu Jingchang-B35083 wrote: Please use a right MUA and wrap your lines at 80chars... + return -EINVAL; + } + return 0

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Vinod Koul
...@lists.infradead.org; devicet...@vger.kernel.org Subject: Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support On Thu, Aug 29, 2013 at 03:32:04AM +, Lu Jingchang-B35083 wrote: Please use a right MUA and wrap your lines at 80chars... [Lu Jingchang] No need to put your

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Lu Jingchang-B35083
; linux-kernel@vger.kernel.org; linux-arm- ker...@lists.infradead.org; devicet...@vger.kernel.org Subject: Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support On Thu, Aug 29, 2013 at 03:32:04AM +, Lu Jingchang-B35083 wrote: Please use a right MUA and wrap your lines

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Vinod Koul
On Mon, Sep 02, 2013 at 07:32:53AM +, Lu Jingchang-B35083 wrote: + chan-private = fn_param; why do you need to use chan-private? [Lu Jingchang] The private used here is to store the slot_id information, which must be used by the DMAMUX in alloc_chan_resources

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-02 Thread Lu Jingchang-B35083
How about change the filter_fn to follow: static bool fsl_edma_filter_fn(struct dma_chan *chan, void *fn_param) { struct fsl_edma_filter_param *fparam = fn_param; struct fsl_edma_chan *fsl_chan = to_fsl_edma_chan(chan); unsigned char val; if

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-01 Thread Vinod Koul
On Thu, Aug 29, 2013 at 03:32:04AM +, Lu Jingchang-B35083 wrote: Please use a right MUA and wrap your lines at 80chars... > > > > > > + return -EINVAL; > > > + } > > > + return 0; > > > + > > > + default: > > > + return -ENXIO; > > > + } > > > +} > >

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-09-01 Thread Vinod Koul
On Thu, Aug 29, 2013 at 03:32:04AM +, Lu Jingchang-B35083 wrote: Please use a right MUA and wrap your lines at 80chars... + return -EINVAL; + } + return 0; + + default: + return -ENXIO; + } +} + +static enum

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-08-28 Thread Lu Jingchang-B35083
> > + } else { > since you support cyclic, is there a reasonw why you dont support > pause/resume? > is it hw issue or planned in future? [Lu Jingchang] The HW supports start/stop request from the peripheral dma request, I had planned to add this in future as requested. I will add this

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-08-28 Thread Vinod Koul
On Fri, Aug 16, 2013 at 02:07:54PM +0800, Jingchang Lu wrote: > Add Freescale enhanced direct memory(eDMA) controller support. > The eDMA controller deploys DMAMUXs routing DMA request sources(slot) > to eDMA channels. > This module can be found on Vybrid and LS-1 SoCs. > +

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-08-28 Thread Lu Jingchang-B35083
Hi, Vinod, Could you please help review this patch? Could it be merged into your next tree? Thanks! Best Regards, Jingchang > -Original Message- > From: Lu Jingchang-B35083 > Sent: Friday, August 16, 2013 2:08 PM > To: vinod.k...@intel.com > Cc: d...@fb.com; shawn@linaro.org;

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-08-28 Thread Lu Jingchang-B35083
Hi, Vinod, Could you please help review this patch? Could it be merged into your next tree? Thanks! Best Regards, Jingchang -Original Message- From: Lu Jingchang-B35083 Sent: Friday, August 16, 2013 2:08 PM To: vinod.k...@intel.com Cc: d...@fb.com; shawn@linaro.org;

Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-08-28 Thread Vinod Koul
On Fri, Aug 16, 2013 at 02:07:54PM +0800, Jingchang Lu wrote: Add Freescale enhanced direct memory(eDMA) controller support. The eDMA controller deploys DMAMUXs routing DMA request sources(slot) to eDMA channels. This module can be found on Vybrid and LS-1 SoCs. + devicet...@vger.kernel.org,

RE: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support

2013-08-28 Thread Lu Jingchang-B35083
+ } else { since you support cyclic, is there a reasonw why you dont support pause/resume? is it hw issue or planned in future? [Lu Jingchang] The HW supports start/stop request from the peripheral dma request, I had planned to add this in future as requested. I will add this in