linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jassisinghbrar@gmail.com (Jassi Brar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] DMA: PL330: Add dma api driver
Date: Mon, 17 May 2010 21:58:35 +0900	[thread overview]
Message-ID: <AANLkTikeRmB7DdO1Nrvzz-jVV8CmISA5C_9f2kgpeLEO@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinAmHkVBii9nTZ5tNYU21whHy8awP55nGEc-8Tp@mail.gmail.com>

On Mon, May 17, 2010 at 6:55 PM, Dan Williams <dan.j.williams@intel.com> wrote:
> On Tue, May 11, 2010 at 10:23 PM, Jassi Brar <jassi.brar@samsung.com> wrote:

>> +static void dma_pl330_rqcb(void *token, enum pl330_op_err err)
>> +{
>> + ? ? ? struct dma_pl330_desc *desc = token;
>> + ? ? ? struct dma_pl330_chan *pch = desc->pchan;
>> + ? ? ? unsigned long flags;
>> +
>> + ? ? ? /* If desc aborted */
>> + ? ? ? if (!pch)
>> + ? ? ? ? ? ? ? return;
>> +
>> + ? ? ? spin_lock_irqsave(&pch->lock, flags);
>> +
>> + ? ? ? desc->status = DONE;
>> +
>> + ? ? ? spin_unlock_irqrestore(&pch->lock, flags);
>
> I don't think you need the lock here. ?Assigning an integer is atomic,
> and you reschedule the tasklet.
yes right

> Since this patch depends on the generic bits in Russell's tree I need
> to wait until after the ARM tree is pulled to take it through the dma
> tree. ?So, for now...
>
> Acked-by: Dan Williams <dan.j.williams@intel.com>
Thanks

      reply	other threads:[~2010-05-17 12:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-12  5:23 [PATCH] DMA: PL330: Add dma api driver Jassi Brar
2010-05-12  8:37 ` Linus Walleij
2010-05-14 23:22   ` Jassi Brar
2010-05-17  9:55 ` Dan Williams
2010-05-17 12:58   ` Jassi Brar [this message]

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=AANLkTikeRmB7DdO1Nrvzz-jVV8CmISA5C_9f2kgpeLEO@mail.gmail.com \
    --to=jassisinghbrar@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).