From: Kevin Hilman <khilman@ti.com>
To: "Mohammed, Afzal" <afzal@ti.com>
Cc: "Kristo, Tero" <t-kristo@ti.com>, Paul Walmsley <paul@pwsan.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: OMAP3EVM not booting on l-o master
Date: Tue, 01 May 2012 07:08:00 -0700 [thread overview]
Message-ID: <87y5pchu4f.fsf@ti.com> (raw)
In-Reply-To: <C8443D0743D26F4388EA172BF4E2A7A93E97C988@DBDE01.ent.ti.com> (Afzal Mohammed's message of "Tue, 1 May 2012 12:55:25 +0000")
"Mohammed, Afzal" <afzal@ti.com> writes:
> Hi Kevin,
>
> On Tue, May 01, 2012 at 02:10:28, Hilman, Kevin wrote:
>>
>> Afzal, care to give this one a test as well? It should have the same
>> result but is a more targetted fix. With and ack from Tero and a
>> Tested-by from you, I'll post this to the list and and queue it up for
>> v3.5.
>
> Over what commit id, should this patch be applied ?, unable to apply it over
> "297624c ARM: OMAP3: PM: Remove IO Daisychain control from cpuidle", the
> one that I tested your previous patch.
Oops, my fault.
Below is a version that applies on top of the IO chain branch currently
in Paul's tree[1].
Kevin
[1] git://git.pwsan.com/linux-2.6 io_chain_devel_3.5
>From d94f04eea40686cd9db8e9dbd8dbf3c02edca07f Mon Sep 17 00:00:00 2001
From: Kevin Hilman <khilman@ti.com>
Date: Tue, 1 May 2012 07:06:42 -0700
Subject: [PATCH] ARM: OMAP3: PM: leave PRCM interrupts disabled until
explicitly enabled.
By default, request_irq() will auto-enable the requested IRQ.
For PRCM interrupts, we may want to avoid that until the PM core code
is fully ready to handle the interrupts. This is particularily true
for IO pad interrupts on OMAP3, which are shared between the hwmod
core and the PRM core.
In order to avoid PRCM IO-chain interrupts until the PM core is ready
to handle them, ready, set the IRQ_NOAUTOEN flag for the PRCM IO-chain
interrupt, which means it will remain disabled after request_irq().
Then, explicitly enable the PRCM interrupts after the request_irq() in
the PM core (but not in the hwmod core.)
Special thanks to Tero Kristo for suggesting to isolate the fix to
only the IO-chain interrupt on OMAP3 instead of all PRCM interrupts.
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
---
arch/arm/mach-omap2/pm34xx.c | 1 +
arch/arm/mach-omap2/prm2xxx_3xxx.c | 10 ++++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index 3e6b564..745a151 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -685,6 +685,7 @@ static int __init omap3_pm_init(void)
ret = request_irq(omap_prcm_event_to_irq("io"),
_prcm_int_handle_io, IRQF_SHARED | IRQF_NO_SUSPEND, "pm_io",
omap3_pm_init);
+ enable_irq(omap_prcm_event_to_irq("io"));
if (ret) {
pr_err("pm: Failed to request pm_io irq\n");
diff --git a/arch/arm/mach-omap2/prm2xxx_3xxx.c b/arch/arm/mach-omap2/prm2xxx_3xxx.c
index 1471a33..a8c6bd8 100644
--- a/arch/arm/mach-omap2/prm2xxx_3xxx.c
+++ b/arch/arm/mach-omap2/prm2xxx_3xxx.c
@@ -350,10 +350,16 @@ static void __init omap3xxx_prm_enable_io_wakeup(void)
static int __init omap3xxx_prcm_init(void)
{
+ int ret = 0;
+
if (cpu_is_omap34xx()) {
omap3xxx_prm_enable_io_wakeup();
- return omap_prcm_register_chain_handler(&omap3_prcm_irq_setup);
+ ret = omap_prcm_register_chain_handler(&omap3_prcm_irq_setup);
+ if (!ret)
+ irq_set_status_flags(omap_prcm_event_to_irq("io"),
+ IRQ_NOAUTOEN);
}
- return 0;
+
+ return ret;
}
subsys_initcall(omap3xxx_prcm_init);
--
1.7.9.2
next prev parent reply other threads:[~2012-05-01 14:08 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-04 5:36 OMAP3EVM not booting on l-o master Mohammed, Afzal
2012-04-04 9:11 ` Mohammed, Afzal
2012-04-05 9:33 ` Paul Walmsley
2012-04-05 10:07 ` Paul Walmsley
2012-04-05 16:22 ` Mohammed, Afzal
2012-04-05 19:52 ` Paul Walmsley
2012-04-06 5:09 ` Mohammed, Afzal
2012-04-06 7:13 ` Paul Walmsley
2012-04-06 7:52 ` Mohammed, Afzal
2012-04-23 9:24 ` Tero Kristo
2012-04-23 10:07 ` Mohammed, Afzal
2012-04-23 10:13 ` Tero Kristo
2012-04-23 10:43 ` Mohammed, Afzal
2012-04-23 11:59 ` Tero Kristo
2012-04-24 12:00 ` Mohammed, Afzal
2012-04-24 12:23 ` Tero Kristo
2012-04-24 17:07 ` Kevin Hilman
2012-04-27 13:16 ` Tero Kristo
2012-04-27 23:15 ` Kevin Hilman
2012-04-28 11:51 ` Mohammed, Afzal
2012-04-30 12:46 ` Tero Kristo
2012-04-30 20:40 ` Kevin Hilman
2012-05-01 12:55 ` Mohammed, Afzal
2012-05-01 14:08 ` Kevin Hilman [this message]
2012-05-02 5:48 ` Mohammed, Afzal
2012-05-02 8:39 ` Tero Kristo
2012-05-02 8:45 ` Paul Walmsley
2012-05-02 14:27 ` Kevin Hilman
2012-05-11 22:39 ` Paul Walmsley
2012-04-05 21:21 ` Kevin Hilman
2012-04-05 10:11 ` Mohammed, Afzal
2012-04-05 10:17 ` Paul Walmsley
2012-04-05 10:23 ` Raja, Govindraj
2012-04-05 16:19 ` Mohammed, Afzal
2012-04-05 17:16 ` Tony Lindgren
2012-04-06 4:54 ` Mohammed, Afzal
2012-04-06 17:41 ` Tony Lindgren
2012-04-06 18:08 ` Paul Walmsley
2012-04-06 18:24 ` 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=87y5pchu4f.fsf@ti.com \
--to=khilman@ti.com \
--cc=afzal@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=t-kristo@ti.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.