From f5e6d0d0eb819cbe1a68b9561c8e83fbd1a6d13a Mon Sep 17 00:00:00 2001 From: Aaron Lu Date: Fri, 25 Jan 2013 14:32:25 +0800 Subject: [PATCH] [libata] PM code cleanup for ata port For system freeze, if the port is already runtime suspended, leave it alone and just return. The port will be resumed on thaw before it will be used. And since we will call get_noresume for every device during prepare phase, and the port is resumed during thaw phase, it can't be in runtime suspended state during the poweroff phase. So remove the runtime_suspended check in poweroff callback. And for all suspend(freeze/suspend/poweroff/etc.), there is no need to touch the device, so set no_autopsy and no_recovery for them all. Signed-off-by: Aaron Lu Signed-off-by: Jeff Garzik --- Reading git-format-patch failed