* [Patch] keep ide disk sleeping when resuming
@ 2005-02-02 19:47 Peter Münster
[not found] ` <Pine.LNX.4.58.0502022006030.4130-iBKnCo7tEuSksujEA26zIQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2005-02-02 19:47 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, axboe-l3A5Bk7waGM,
benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r,
B.Zolnierkiewicz-ZGDBLhmm9VR4rM3dGMyr8Q
Hello,
I need this patch (against linux-2.6.11-rc2), to keep ide disk sleeping,
when resuming from ACPI S1.
In fact, it's just removing a patch from 22 Jun 2004 by Jens Axboe. He has
told me, that "We can probably kill the patch completely".
So, this is what I'm doing now.
Kind regards, Peter
--- drivers/ide/ide-disk.c.orig 2005-02-02 20:30:12.000000000 +0100
+++ drivers/ide/ide-disk.c 2005-02-02 20:32:21.000000000 +0100
@@ -864,9 +864,7 @@
enum {
idedisk_pm_flush_cache = ide_pm_state_start_suspend,
idedisk_pm_standby,
-
- idedisk_pm_idle = ide_pm_state_start_resume,
- idedisk_pm_restore_dma,
+ idedisk_pm_restore_dma = ide_pm_state_start_resume
};
static void idedisk_complete_power_step (ide_drive_t *drive, struct request *rq, u8 stat, u8 error)
@@ -881,9 +879,6 @@
case idedisk_pm_standby: /* Suspend step 2 (standby) complete */
rq->pm->pm_step = ide_pm_state_completed;
break;
- case idedisk_pm_idle: /* Resume step 1 (idle) complete */
- rq->pm->pm_step = idedisk_pm_restore_dma;
- break;
}
}
@@ -914,12 +909,6 @@
args->handler = &task_no_data_intr;
return do_rw_taskfile(drive, args);
- case idedisk_pm_idle: /* Resume step 1 (idle) */
- args->tfRegister[IDE_COMMAND_OFFSET] = WIN_IDLEIMMEDIATE;
- args->command_type = IDE_DRIVE_TASK_NO_DATA;
- args->handler = task_no_data_intr;
- return do_rw_taskfile(drive, args);
-
case idedisk_pm_restore_dma: /* Resume step 2 (restore DMA) */
/*
* Right now, all we do is call hwif->ide_dma_check(drive),
--
http://pmrb.free.fr/contact/
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-02 23:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-02 19:47 [Patch] keep ide disk sleeping when resuming Peter Münster
[not found] ` <Pine.LNX.4.58.0502022006030.4130-iBKnCo7tEuSksujEA26zIQ@public.gmane.org>
2005-02-02 23:38 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox