Skip to contentSkip to conversation

no disk yoyo for -mm

PATCH New Pavel Machek 1 participant 1 message Jul 21, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 no disk yoyo for -mm

From: Michal Schmidt <[email protected]>

The attached patch stops the disks from spinning down and up on suspend. The patch applies to 2.6.13-rc3-mm1 (depends on pm_message_t being struct).

---
commit 3d1f9a53dcf4a73934daeb878493ed512fd78407 tree 53c0d3101fa18fbfeae3dd0a4214428319dace99 parent c21641336d5c83a41d15cdb34f18413f2b8217fd author <pavel@amd.(none)> Thu, 21 Jul 2005 21:20:05 +0200 committer <pavel@amd.(none)> Thu, 21 Jul 2005 21:20:05 +0200

 drivers/ide/ide-io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ide/ide-io.c +1 -1
@@ -150,7 +150,7 @@ static void ide_complete_power_step(ide_
 
 	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;
Signature · 1 line
teflon -- maybe it is a trademark, but it should not be.