From: Santosh Shilimkar <santosh.shilimkar@ti.com>
To: Paul Walmsley <paul@pwsan.com>,
linux-omap@vger.kernel.org, Govindraj <govindraj.ti@gmail.com>
Cc: khilman@deeprootsystems.com
Subject: RE: Unbalanced IRQ wake disable during resume from static suspend
Date: Thu, 2 Dec 2010 14:38:34 +0530 [thread overview]
Message-ID: <1c6ea016b8c01ee8b470e95fdcae4ee0@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1012020112540.2515@utopia.booyaka.com>
Paul,
> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> owner@vger.kernel.org] On Behalf Of Paul Walmsley
> Sent: Thursday, December 02, 2010 1:44 PM
> To: linux-omap@vger.kernel.org; Govindraj
> Cc: khilman@deeprootsystems.com
> Subject: Re: Unbalanced IRQ wake disable during resume from static
suspend
>
> On Thu, 2 Dec 2010, Paul Walmsley wrote:
>
> > On current linux-omap master (commit
> > 7fd1cffc56ca9944fec583eb2ecda5ce88b36bff "Linux-omap rebuilt: Updated
to
> > -rc4"), when resuming from static suspend, several "Unbalanced IRQ
> > wake disable" warnings are generated, one for each of the serial
ports.
> > This is on Beagle 35xx rev C2.
>
> Just to follow up on this, these messages are not logged when
> /sys/devices/platform/omap/omap-hsuart.*/tty/ttyO*/power/wakeup are set
to
> 'disabled'.
>
> Also this is with omap2plus_defconfig.
>
Just a wild guess here but is this because the 'set_wake' is
not setup and then fw might be returning some error whenever
driver invoke this API as part of enable_irq_wake() callback
If that being the case, below patch might might help. Can
somebody try this out ?
Regards,
Santosh
omap: irq: Dummy handler for enable_irq_wake
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
---
arch/arm/mach-omap2/irq.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index 32eeabe..6a964d3 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -143,11 +143,21 @@ static void omap_mask_ack_irq(unsigned int irq)
omap_ack_irq(irq);
}
+#ifdef CONFIG_PM
+static int omap_set_wake(unsigned int irq, unsigned int on)
+{
+ return 0;
+}
+#else
+#define omap_set_wake NULL
+#endif
+
static struct irq_chip omap_irq_chip = {
.name = "INTC",
.ack = omap_mask_ack_irq,
.mask = omap_mask_irq,
.unmask = omap_unmask_irq,
+ .set_wake = omap_set_wake,
};
static void __init omap_irq_bank_init_one(struct omap_irq_bank *bank)
--
1.6.0.4
next prev parent reply other threads:[~2010-12-02 9:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 8:05 Unbalanced IRQ wake disable during resume from static suspend Paul Walmsley
2010-12-02 8:14 ` Paul Walmsley
2010-12-02 9:08 ` Santosh Shilimkar [this message]
2010-12-02 10:34 ` Govindraj
2010-12-02 11:10 ` Santosh Shilimkar
2010-12-02 14:15 ` Kevin Hilman
2010-12-02 14:54 ` Santosh Shilimkar
2010-12-03 10:00 ` Paul Walmsley
2010-12-07 21:32 ` Kevin Hilman
2010-12-03 10:23 ` Paul Walmsley
2010-12-03 11:08 ` Santosh Shilimkar
2010-12-03 11:20 ` Govindraj
2010-12-03 11:26 ` Santosh Shilimkar
2010-12-09 18:20 ` Kevin Hilman
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=1c6ea016b8c01ee8b470e95fdcae4ee0@mail.gmail.com \
--to=santosh.shilimkar@ti.com \
--cc=govindraj.ti@gmail.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox