From: Santosh Shilimkar <santosh.shilimkar@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-omap@vger.kernel.org, Govindraj <govindraj.ti@gmail.com>,
khilman@deeprootsystems.com
Subject: RE: Unbalanced IRQ wake disable during resume from static suspend
Date: Fri, 3 Dec 2010 16:38:06 +0530 [thread overview]
Message-ID: <b07234f560157a691115ed4a678e0c2f@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1012030315510.17078@utopia.booyaka.com>
> -----Original Message-----
> From: Paul Walmsley [mailto:paul@pwsan.com]
> Sent: Friday, December 03, 2010 3:53 PM
> To: Santosh Shilimkar
> Cc: linux-omap@vger.kernel.org; Govindraj; khilman@deeprootsystems.com
> Subject: RE: Unbalanced IRQ wake disable during resume from static
suspend
>
> Hello Santosh
>
> On Thu, 2 Dec 2010, Santosh Shilimkar wrote:
>
> > 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 ?
>
> This patch might remove the warnings, but I doubt that it solves the
root
> cause. In any case, it doesn't seem correct to unconditionally return 0
> (success) from an omap_irq_wake() function, given that the OMAP INTC has
> no functionality in this regard.
>
> The real problem appears to be in drivers/serial/serial_core.c.
> uart_suspend_port() doesn't check the return value of enable_irq_wake().
> Seems to me that it needs to save that return value somewhere and not
> bother calling disable_irq_wake() in uart_resume_port() if
> enable_irq_wake() returned an error.
>
> That's the patch that I'd suggest that you guys put together and send to
> the Linux serial people.
>
You are right Paul. This will actually fix the broken driver rather than
masking it. Will spin a patch for the same
next prev parent reply other threads:[~2010-12-03 11: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
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 [this message]
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=b07234f560157a691115ed4a678e0c2f@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