From: Michal Schmidt Date: Sat, 3 Sep 2005 22:57:01 +0000 (-0700) Subject: [PATCH] swsusp: prevent disks from spinning down and up X-Git-Tag: v2.6.14-rc1~833 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=46dacba52a19d1414ba249499a48382c16242d99;p=linux-2.6-omap-h63xx.git [PATCH] swsusp: prevent disks from spinning down and up Stop the disks from spinning down and up on suspend. Signed-off-by: Michal Schmidt Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 248e3cc8b35..f174aee659e 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -150,7 +150,7 @@ static void ide_complete_power_step(ide_drive_t *drive, struct request *rq, u8 s switch (rq->pm->pm_step) { case ide_pm_flush_cache: /* Suspend step 1 (flush cache) complete */ - if (rq->pm->pm_state == 4) + if (rq->pm->pm_state == PM_EVENT_FREEZE) rq->pm->pm_step = ide_pm_state_completed; else rq->pm->pm_step = idedisk_pm_standby;