From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Colin Cross <ccross@android.com>
Cc: linux-pm@lists.linux-foundation.org,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
"Greg Kroah-Hartman" <gregkh@suse.de>
Subject: Re: [PATCH] PM: Reintroduce dropped call to check_wakeup_irqs
Date: Mon, 11 Jul 2011 10:46:55 +0200 [thread overview]
Message-ID: <201107111046.56044.rjw@sisk.pl> (raw)
In-Reply-To: <1310342666-2493-1-git-send-email-ccross@android.com>
On Monday, July 11, 2011, Colin Cross wrote:
> Patch 2e711c04dbbf7a7732a3f7073b1fc285d12b369d
> (PM: Remove sysdev suspend, resume and shutdown operations)
> deleted sysdev_suspend, which was being relied on to call
> check_wakeup_irqs in suspend. If check_wakeup_irqs is not
> called, wake interrupts that are pending when suspend is
> entered may be lost. It also breaks IRQCHIP_MASK_ON_SUSPEND,
> which is handled in check_wakeup_irqs.
>
> This patch adds a call to check_wakeup_irqs in syscore_suspend,
> similar to what was deleted in sysdev_suspend.
>
> CC: Rafael J. Wysocki <rjw@sisk.pl>
> CC: Thomas Gleixner <tglx@linutronix.de>
> CC: Greg Kroah-Hartman <gregkh@suse.de>
> Signed-off-by: Colin Cross <ccross@android.com>
Thanks a lot for the patch and sorry for the breakage.
I'll push it to Linus later today (hopefully, that's not to late for 3.0).
Thanks,
Rafael
> ---
> drivers/base/syscore.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/base/syscore.c b/drivers/base/syscore.c
> index c126db3..9b8bbe0 100644
> --- a/drivers/base/syscore.c
> +++ b/drivers/base/syscore.c
> @@ -9,6 +9,7 @@
> #include <linux/syscore_ops.h>
> #include <linux/mutex.h>
> #include <linux/module.h>
> +#include <linux/interrupt.h>
>
> static LIST_HEAD(syscore_ops_list);
> static DEFINE_MUTEX(syscore_ops_lock);
> @@ -48,6 +49,13 @@ int syscore_suspend(void)
> struct syscore_ops *ops;
> int ret = 0;
>
> + pr_debug("Checking wake-up interrupts\n");
> +
> + /* Return error code if there are any wake-up interrupts pending */
> + ret = check_wakeup_irqs();
> + if (ret)
> + return ret;
> +
> WARN_ONCE(!irqs_disabled(),
> "Interrupts enabled before system core suspend.\n");
>
>
prev parent reply other threads:[~2011-07-11 8:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-11 0:04 Colin Cross
2011-07-11 8:46 ` Rafael J. Wysocki [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=201107111046.56044.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=ccross@android.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®