summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorAaron Lu <aaron.lu@amd.com>2012-05-15 14:43:00 +0800
committerJames Bottomley <JBottomley@Parallels.com>2012-05-22 11:09:50 +0100
commitd20ec597cba1e8ea407c9a7c668a9e04fc057c83 (patch)
tree8b4807a70dbeaca14a882ef96bc0410bcf1f464f /drivers/scsi/qla2xxx/qla_init.c
parent6192bd7cdc37e2df9391403235b72668a5bf27da (diff)
downloadtalos-obmc-linux-d20ec597cba1e8ea407c9a7c668a9e04fc057c83.tar.gz
talos-obmc-linux-d20ec597cba1e8ea407c9a7c668a9e04fc057c83.zip
[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 <aaron.lu@amd.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud