public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH: Shutdown IDE before powering off.
@ 2004-01-22  1:42 Nigel Cunningham
  2004-01-22  7:49 ` Andrew Morton
  0 siblings, 1 reply; 16+ messages in thread
From: Nigel Cunningham @ 2004-01-22  1:42 UTC (permalink / raw)
  To: Linux Kernel Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 301 bytes --]

Hi.

Here's a patch Bernard Blackham posted to the Software Suspend mailing
list, which has fixed data-not-being-properly flushed issues for some
people. (Forwarded with Bernard's permission).

Regards,

Nigel
-- 
My work on Software Suspend is graciously brought to you by
LinuxFund.org.

[-- Attachment #1.2: ide-shutdown.diff --]
[-- Type: text/x-patch, Size: 718 bytes --]

diff -ruN linux-2.6.0/drivers/ide/ide.c.orig linux-2.6.0/drivers/ide/ide.c
--- linux-2.6.0/drivers/ide/ide.c.orig	2003-12-18 10:58:38.000000000 +0800
+++ linux-2.6.0/drivers/ide/ide.c	2003-12-28 10:18:47.000000000 +0800
@@ -2493,6 +2493,11 @@
 	return 0;
 }
 
+static void ide_drive_shutdown (struct device * dev)
+{
+	generic_ide_suspend(dev, 5);
+}
+
 int ide_register_driver(ide_driver_t *driver)
 {
 	struct list_head list;
@@ -2519,6 +2524,7 @@
 	driver->gen_driver.name = (char *) driver->name;
 	driver->gen_driver.bus = &ide_bus_type;
 	driver->gen_driver.remove = ide_drive_remove;
+	driver->gen_driver.shutdown = ide_drive_shutdown;
 	return driver_register(&driver->gen_driver);
 }
 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-03-25 14:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1gC8S-6UB-5@gated-at.bofh.it>
     [not found] ` <1gIHq-3JU-23@gated-at.bofh.it>
     [not found]   ` <1gPzb-1OM-17@gated-at.bofh.it>
     [not found]     ` <1gQET-2Qn-9@gated-at.bofh.it>
2004-03-11 21:46       ` PATCH: Shutdown IDE before powering off Karol Kozimor
2004-03-13  2:48         ` Broken PM semantics (WAS: PATCH: Shutdown IDE before powering off) Benjamin Herrenschmidt
2004-03-18  6:36           ` Pavel Machek
2004-01-22  1:42 PATCH: Shutdown IDE before powering off Nigel Cunningham
2004-01-22  7:49 ` Andrew Morton
2004-01-22  8:13   ` John Bradford
2004-01-22  8:26     ` Nigel Cunningham
2004-01-22  8:45       ` Andrew Morton
2004-01-22  9:10         ` Nigel Cunningham
2004-01-22 16:02         ` Jeff Garzik
2004-01-22 17:13           ` Bartlomiej Zolnierkiewicz
2004-01-22 10:08       ` John Bradford
2004-01-22 19:19     ` James H. Cloos Jr.
2004-01-22 19:36       ` Nigel Cunningham
2004-01-22 19:52         ` James H. Cloos Jr.
2004-01-22 21:07       ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox