From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alexey Starikovskiy <astarikovskiy@suse.de>
Cc: ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Len Brown <lenb@kernel.org>
Subject: Re: [PATCH] ACPI: suspend: Wrong order of GPE restore.
Date: Tue, 16 Oct 2007 22:00:37 +0200 [thread overview]
Message-ID: <200710162200.37765.rjw@sisk.pl> (raw)
In-Reply-To: <20071016185520.6279.92045.stgit@samsung>
On Tuesday, 16 October 2007 20:55, Alexey Starikovskiy wrote:
> acpi_leave_sleep_state() should have correct list of wake and
> runtime GPEs, which is available only after disable_wakeup_device()
> is called.
>
> Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
> ---
Ackedy-by: Rafael J. Wysocki <rjw@sisk.pl>
> drivers/acpi/sleep/main.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c
> index 5055acf..728d595 100644
> --- a/drivers/acpi/sleep/main.c
> +++ b/drivers/acpi/sleep/main.c
> @@ -170,8 +170,8 @@ static int acpi_pm_finish(suspend_state_t pm_state)
> {
> u32 acpi_state = acpi_target_sleep_state;
>
> - acpi_leave_sleep_state(acpi_state);
> acpi_disable_wakeup_device(acpi_state);
> + acpi_leave_sleep_state(acpi_state);
>
> /* reset firmware waking vector */
> acpi_set_firmware_waking_vector((acpi_physical_address) 0);
> @@ -256,8 +256,8 @@ static int acpi_hibernation_enter(void)
>
> static void acpi_hibernation_finish(void)
> {
> - acpi_leave_sleep_state(ACPI_STATE_S4);
> acpi_disable_wakeup_device(ACPI_STATE_S4);
> + acpi_leave_sleep_state(ACPI_STATE_S4);
>
> /* reset firmware waking vector */
> acpi_set_firmware_waking_vector((acpi_physical_address) 0);
>
>
>
--
"Premature optimization is the root of all evil." - Donald Knuth
parent reply other threads:[~2007-10-16 19:45 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20071016185520.6279.92045.stgit@samsung>]
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=200710162200.37765.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=astarikovskiy@suse.de \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
/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