On Mon, Sep 27, 2010 at 3:57 PM, Ira W. Snyder <[email protected]> wrote: > Now that the DMAEngine API has support for scatterlist to scatterlist > copy, implement support for the STE DMA40 DMA controller. > > Cc: Linus Walleij <[email protected]> > Cc: Per Fridén <[email protected]> > Signed-off-by: Ira W. Snyder <[email protected]> > --- > drivers/dma/ste_dma40.c | 17 +++++++++++++++++ > 1 files changed, 17 insertions(+), 0 deletions(-) > > diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c > index 17e2600..cd48859 100644 > --- a/drivers/dma/ste_dma40.c > +++ b/drivers/dma/ste_dma40.c > @@ -1857,6 +1857,18 @@ err: > return NULL; > } > > +static struct dma_async_tx_descriptor * > +d40_prep_sg(struct dma_chan *chan, > + struct scatterlist *dst_sg, unsigned int dst_nents, > + struct scatterlist *src_sg, unsigned int src_nents, > + unsigned long dma_flags) > +{ > + if (dst_nents != src_nents) > + return -EINVAL;
I suspect you wanted "return NULL;" here. I can fix that up. Linus, Per ack? -- Dan _______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
