lkml.org 
[lkml]   [2013]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] dmaengine: mpc512x_dma: use generic DMA DT bindings
On Mon, 08 Apr 2013 12:46:47 +0200
Lars-Peter Clausen <lars@metafoo.de> wrote:
...
> > +static struct dma_chan *mpc_dma_xlate(struct of_phandle_args *dma_spec,
> > + struct of_dma *ofdma)
> > +{
> > + int count = dma_spec->args_count;
> > + struct mpc_dma *mdma = ofdma->of_dma_data;
> > + struct mpc_dma_filter_args fargs;
> > + dma_cap_mask_t cap;
> > +
> > + if (!mdma)
> > + return NULL;
> > +
> > + if (count != 1)
> > + return NULL;
> > +
> > + fargs.mdma = mdma;
> > + fargs.chan_id = dma_spec->args[0];
> > +
> > + dma_cap_zero(cap);
> > + dma_cap_set(DMA_SLAVE, cap);
> > +
> > + return dma_request_channel(cap, mpc_dma_filter, &fargs);
> > +}
> > +
>
> This is more or less the same as the generic of_dma_xlate_by_chan_id
> function I posted about two weeks ago:
> https://patchwork.kernel.org/patch/2331091/

Thanks. I can use the generic of_dma_xlate_by_chan_id() when above patch
will be accepted.

Anatolij


\
 
 \ /
  Last update: 2013-04-09 14:21    [W:0.112 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site