From: Per Friden <per.friden@stericsson.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: Per FORLIN <per.forlin@stericsson.com>,
Linus Walleij <linus.ml.walleij@gmail.com>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Ira W. Snyder" <iws@ovro.caltech.edu>
Subject: Re: [PATCH 4/4] ste_dma40: implement support for scatterlist to scatterlist copy
Date: Thu, 30 Sep 2010 09:13:56 +0200 [thread overview]
Message-ID: <4CA438B4.4040106@stericsson.com> (raw)
In-Reply-To: <AANLkTinYG4LqtEXxM5pdA0vavahtqbt6=yV341pnFmZw@mail.gmail.com>
On 09/29/2010 11:19 PM, Dan Williams wrote:
> On Mon, Sep 27, 2010 at 3:57 PM, Ira W. Snyder <iws@ovro.caltech.edu> wrote:
>> Now that the DMAEngine API has support for scatterlist to scatterlist
>> copy, implement support for the STE DMA40 DMA controller.
>>
>> Cc: Linus Walleij <linus.ml.walleij@gmail.com>
>> Cc: Per Fridén <per.friden@stericsson.com>
>> Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
>> ---
>> 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
Thanks Dan. Acked by Per.
/Per
WARNING: multiple messages have this Message-ID (diff)
From: Per Friden <per.friden@stericsson.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: "Ira W. Snyder" <iws@ovro.caltech.edu>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
Linus Walleij <linus.ml.walleij@gmail.com>,
Per FORLIN <per.forlin@stericsson.com>
Subject: Re: [PATCH 4/4] ste_dma40: implement support for scatterlist to scatterlist copy
Date: Thu, 30 Sep 2010 09:13:56 +0200 [thread overview]
Message-ID: <4CA438B4.4040106@stericsson.com> (raw)
In-Reply-To: <AANLkTinYG4LqtEXxM5pdA0vavahtqbt6=yV341pnFmZw@mail.gmail.com>
On 09/29/2010 11:19 PM, Dan Williams wrote:
> On Mon, Sep 27, 2010 at 3:57 PM, Ira W. Snyder <iws@ovro.caltech.edu> wrote:
>> Now that the DMAEngine API has support for scatterlist to scatterlist
>> copy, implement support for the STE DMA40 DMA controller.
>>
>> Cc: Linus Walleij <linus.ml.walleij@gmail.com>
>> Cc: Per Fridén <per.friden@stericsson.com>
>> Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
>> ---
>> 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
Thanks Dan. Acked by Per.
/Per
next prev parent reply other threads:[~2010-09-30 7:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-27 22:57 [PATCH RFCv3 0/4] dma: add support for scatterlist to scatterlist copy Ira W. Snyder
2010-09-27 22:57 ` [PATCH 1/4] " Ira W. Snyder
2010-09-27 22:57 ` [PATCH 2/4] fsldma: implement " Ira W. Snyder
2010-09-27 22:57 ` [PATCH 3/4] fsldma: remove DMA_SLAVE support Ira W. Snyder
2010-09-29 21:52 ` Dan Williams
2010-09-29 21:52 ` Dan Williams
2010-09-29 22:19 ` Ira W. Snyder
2010-09-29 22:19 ` Ira W. Snyder
2010-09-27 22:57 ` [PATCH 4/4] ste_dma40: implement support for scatterlist to scatterlist copy Ira W. Snyder
2010-09-27 22:57 ` Ira W. Snyder
2010-09-29 21:19 ` Dan Williams
2010-09-29 21:19 ` Dan Williams
2010-09-30 7:13 ` Per Friden [this message]
2010-09-30 7:13 ` Per Friden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA438B4.4040106@stericsson.com \
--to=per.friden@stericsson.com \
--cc=dan.j.williams@intel.com \
--cc=iws@ovro.caltech.edu \
--cc=linus.ml.walleij@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=per.forlin@stericsson.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.