summaryrefslogtreecommitdiffstats
path: root/Documentation/scsi
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2012-03-15 11:11:31 +0800
committerJames Bottomley <JBottomley@Parallels.com>2012-03-19 11:34:18 +0000
commit4e2247b2bd289f079349d6c69755f8cff4e31f2b (patch)
tree49f7824b1b09a6c3402d84b2173963eecdfce418 /Documentation/scsi
parentcd8df932d894f3128c884e3ae1b2b484540513db (diff)
downloadop-kernel-dev-4e2247b2bd289f079349d6c69755f8cff4e31f2b.zip
op-kernel-dev-4e2247b2bd289f079349d6c69755f8cff4e31f2b.tar.gz
[SCSI] sd: Add runtime pm in the sd_check_events()
The sd_check_event() will be called periodly even when the device is in the suspended status to check media event. The scsi_test_unit_ready() in the sd_check_event() will issue scsi cmd request. Issuing scsi request when the device is in the suspeneded status will cause problem. For example, when a usb flash disk in the suspended status, scsi_test_unit_ready() issues a scsi request. The request will be returned as failed because the usb device is not active. The patch adds scsi_autopm_get_device() and scsi_autopm_put_device() around scsi_test_unit_ready() in the sd_check_event() to resolve such problem. Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'Documentation/scsi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud