public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Andrew Grover
	<andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	kernel list
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	ACPI mailing list
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Ask devices to powerdown before S3 sleep
Date: Sun, 19 Jan 2003 22:46:42 +0100	[thread overview]
Message-ID: <20030119214642.GA27885@elf.ucw.cz> (raw)

Hi!

SUSPEND_RESUME phase is needed for turning off IO-APIC. [I believe
SUSPEND_DISABLE should be so simple that errors just should not be
there, and besides we would not know how to safely enable devices from
such weird state, anyway]. Please apply,

								Pavel

--- clean/drivers/acpi/sleep.c	2003-01-05 22:58:25.000000000 +0100
+++ linux-swsusp/drivers/acpi/sleep.c	2003-01-19 21:27:00.000000000 +0100
@@ -143,6 +143,10 @@
 			return error;
 		}
 
+		error = device_suspend(state, SUSPEND_DISABLE);
+		if (error)
+			panic("Sorry, devices really should know how to disable\n");
+
 		/* flush caches */
 		ACPI_FLUSH_CPU_CACHE();

-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?

             reply	other threads:[~2003-01-19 21:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-19 21:46 Pavel Machek [this message]
     [not found] ` <20030119214642.GA27885-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-01-21  1:27   ` Ask devices to powerdown before S3 sleep Andre Hedrick
     [not found]     ` <Pine.LNX.4.10.10301201714120.16070-100000-eTnbHd5RJ1QZiu+GbOt07GD2FQJk+8+b@public.gmane.org>
2003-01-21 10:47       ` Pavel Machek
     [not found]         ` <20030121104737.GC24349-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
2003-01-21 11:38           ` Andre Hedrick
2003-01-21  7:56   ` Zwane Mwaikambo
     [not found]     ` <Pine.LNX.4.44.0301210241290.2653-100000-SOP5cCwKKQTHd+ljcrIm56Udfx7Bl9N1@public.gmane.org>
2003-01-21 10:46       ` Pavel Machek
     [not found]         ` <20030121104601.GB24349-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
2003-01-21 10:55           ` Zwane Mwaikambo
     [not found]             ` <Pine.LNX.4.44.0301210554050.2653-100000-SOP5cCwKKQTHd+ljcrIm56Udfx7Bl9N1@public.gmane.org>
2003-01-21 11:03               ` Pavel Machek

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=20030119214642.GA27885@elf.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.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