From: Jason Lunz Date: Tue, 3 Oct 2006 08:14:26 +0000 (-0700) Subject: [PATCH] ide: reprogram disk pio timings on resume X-Git-Tag: v2.6.19-rc1~328 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c2c0118b86183bf4826db990cae5c8a8d6c6746;p=pandora-kernel.git [PATCH] ide: reprogram disk pio timings on resume Add a step to the IDE PM state machine that reprograms disk PIO timings as the first step on resume. This prevents ide deadlock on resume-from-ram on my nforce3-based laptop. An earlier implementation was written entirely within the amd74xx ide driver, but Alan helpfully pointed out that this is the correct thing to do globally. Still, I'm only calling hwif->tuneproc() for disks, based on two things: - The existing state machine is already passed over for non-disk drives - Previous testing on my laptop shows that the hangs are related only to the disk - suspend/resume from a livecd showed that there's no need for this on the cdrom. Signed-off-by: Jason Lunz Cc: Bartlomiej Zolnierkiewicz Cc: "Rafael J. Wysocki" Cc: Sergei Shtylyov Cc: Pavel Machek Cc: Brad Campbell Cc: David Brownell Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed