]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] sd: change to auto suspend mode
authorLin Ming <ming.m.lin@intel.com>
Sat, 23 Mar 2013 03:42:28 +0000 (11:42 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 6 May 2013 19:48:31 +0000 (12:48 -0700)
commit6df339a51e3bf18b868384bdeb31e49a4fbaa3d8
treea66fc02f26c5a9bf3aaacf9ad24f686a87043e0d
parent9b21493c4520970f8f404e0265f48e37f9cffaf5
[SCSI] sd: change to auto suspend mode

Uses block layer runtime pm helper functions in
scsi_runtime_suspend/resume for devices that take advantage of it.

Remove scsi_autopm_* from sd open/release path and check_events path.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_pm.c
drivers/scsi/sd.c