Alan Stern 478a8a0543 [SCSI] sd: add support for runtime PM
This patch (as1399) adds runtime-PM support to the sd driver.  The
support is unsophisticated: If a SCSI disk device is mounted, or if
its device file is held open, then the device will not be
runtime-suspended; otherwise it will (provided userspace gives
permission by writing "auto" to the sysfs power/control attribute).

In order to make this work, a dev_set_drvdata() call had to be moved
from sd_probe_async() to sd_probe().  Also, a few lines of code were
changed to use a local variable instead of recalculating the address
of an embedded struct device.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-07-28 09:07:50 -05:00
..
2010-07-27 12:04:32 -05:00
2008-08-29 02:13:10 -07:00
2010-07-27 12:02:00 -05:00
2010-07-27 12:02:03 -05:00
2010-01-18 10:48:08 -06:00
2010-02-09 11:13:56 +01:00
2008-12-28 20:00:03 +01:00
2010-05-02 15:55:03 -04:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2010-07-28 09:07:50 -05:00
2009-12-10 08:54:15 -06:00
2010-07-28 09:07:50 -05:00
2008-02-07 18:02:44 -06:00
2009-12-10 08:54:13 -06:00