From: Aaron Lu Date: Tue, 15 May 2012 06:43:00 +0000 (+0800) Subject: [SCSI] scsi_pm: resume device if suspend failed X-Git-Tag: v3.5-rc1~25^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d20ec597cba1e8ea407c9a7c668a9e04fc057c83;p=pandora-kernel.git [SCSI] scsi_pm: resume device if suspend failed For scsi devices which use scsi bus runtime callback, runtime suspend will call scsi_dev_type_suspend, and if the drv->suspend failed, the device will still be in active state. But since scsi_device_quiesce is called, the device will not be able to respond any more commands. So add a check here to see if err occured, if so, bring the device back to normal state with scsi_device_resume. Signed-off-by: Aaron Lu Acked-by: Alan Stern Signed-off-by: James Bottomley --- Reading git-diff-tree failed