From: Kevin Hilman <khilman@deeprootsystems.com>
To: Mika Westerberg <ext-mika.1.westerberg@nokia.com>
Cc: ext Tony Lindgren <tony@atomide.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] OMAP2/3/4: DMA: reset controller during init
Date: Tue, 11 May 2010 08:13:12 -0700 [thread overview]
Message-ID: <87632ueak7.fsf@deeprootsystems.com> (raw)
In-Reply-To: <20100511092731.GG11783@esdhcp04058.research.nokia.com> (Mika Westerberg's message of "Tue\, 11 May 2010 12\:27\:31 +0300")
Mika Westerberg <ext-mika.1.westerberg@nokia.com> writes:
> On Tue, May 04, 2010 at 10:40:06AM +0300, Mika Westerberg wrote:
>> On Mon, May 03, 2010 at 06:58:18PM +0200, ext Tony Lindgren wrote:
>> > * Mika Westerberg <ext-mika.1.westerberg@nokia.com> [100503 05:52]:
>> (...)
>> > > +/**
>> > > + * omap_dma_reset() - perform software reset for the DMA controller
>> > > + */
>> > > +static void omap_dma_reset(void)
>> > > +{
>> > > + u32 v;
>> > > +
>> > > + if (cpu_class_is_omap1())
>> > > + return;
>> > > +
>> > > + v = dma_read(OCP_SYSCONFIG);
>> > > + v |= 0x2; /* software reset */
>> > > + dma_write(v, OCP_SYSCONFIG);
>> > > +
>> > > + /* wait until reset is complete */
>> > > + while ((dma_read(SYSSTATUS) & 0x1) == 0)
>> > > + cpu_relax();
>> >
>> > This reset part seems to be mach-omap2 specific.
>> >
>> > > + /* disable per channel interrupts */
>> > > + dma_write(0, IRQENABLE_L0);
>> > > + dma_write(0, IRQENABLE_L1);
>> > > + dma_write(0, IRQENABLE_L2);
>> > > + dma_write(0, IRQENABLE_L3);
>> > > +}
>> >
>> > For a minimal fix, how about just disable the interrupt in omap_clear_dma()?
>> > We are already calling that from omap_init_dma().
>>
>> If we do it in omap_clear_dma() then omap_dma_global_context_restore() will
>> return with interrupts masked which probably breaks things.
>>
>> How about something like following patch?
>
> Tony, Kevin
>
> Any comments on this patch?
Looks good to me.
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
next prev parent reply other threads:[~2010-05-11 15:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-03 12:55 [PATCH] OMAP2/3/4: DMA: reset controller during init Mika Westerberg
2010-05-03 16:03 ` Kevin Hilman
2010-05-03 16:36 ` Tony Lindgren
2010-05-03 17:05 ` Kevin Hilman
2010-05-03 17:34 ` Tony Lindgren
2010-05-03 18:23 ` Kevin Hilman
2010-05-03 18:33 ` Tony Lindgren
2010-05-03 16:58 ` Tony Lindgren
2010-05-04 7:40 ` Mika Westerberg
2010-05-11 9:27 ` Mika Westerberg
2010-05-11 15:13 ` Kevin Hilman [this message]
2010-05-11 22:29 ` [APPLIED] " Tony Lindgren
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=87632ueak7.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=ext-mika.1.westerberg@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.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.