Thread (9 messages) 9 messages, 3 authors, 2010-09-30

Re: [PATCH 4/4] ste_dma40: implement support for scatterlist to scatterlist copy

From: Dan Williams <hidden>
Date: 2010-09-29 21:20:58
Also in: lkml

On Mon, Sep 27, 2010 at 3:57 PM, Ira W. Snyder [off-list ref] wrote=
:
quoted hunk ↗ jump to hunk
Now that the DMAEngine API has support for scatterlist to scatterlist
copy, implement support for the STE DMA40 DMA controller.

Cc: Linus Walleij <redacted>
Cc: Per Frid=E9n <redacted>
Signed-off-by: Ira W. Snyder <redacted>
---
=A0drivers/dma/ste_dma40.c | =A0 17 +++++++++++++++++
=A01 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:
=A0 =A0 =A0 =A0return NULL;
=A0}

+static struct dma_async_tx_descriptor *
+d40_prep_sg(struct dma_chan *chan,
+ =A0 =A0 =A0 =A0 =A0 struct scatterlist *dst_sg, unsigned int dst_nents,
+ =A0 =A0 =A0 =A0 =A0 struct scatterlist *src_sg, unsigned int src_nents,
+ =A0 =A0 =A0 =A0 =A0 unsigned long dma_flags)
+{
+ =A0 =A0 =A0 if (dst_nents !=3D src_nents)
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 return -EINVAL;
I suspect you wanted "return NULL;" here.  I can fix that up.

Linus, Per ack?

--
Dan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help