]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SCSI] sr: use block layer runtime PM
authorAaron Lu <aaron.lu@intel.com>
Mon, 28 Oct 2013 07:27:49 +0000 (15:27 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 16 Dec 2013 18:57:51 +0000 (10:57 -0800)
commit6627b38fd902cd31c6ad52f9be12a17a38f0faef
tree73a734d7a13ba1589211939f4d38bbbcf4814aac
parent3c60cfd73966797746530768d66597d025a69804
[SCSI] sr: use block layer runtime PM

Migrate sr to make use of block layer runtime PM. Accordingly, the
SCSI bus layer runtime PM callback is simplified as all SCSI drivers
implementing runtime PM now use the block layer's request-based
mechanism.

Note that due to the device will be polled by kernel at a constant
interval, if the autosuspend delay is set longer than the polling
interval then the device will never suspend.

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/sr.c