On Tue, Sep 04, 2012 at 06:01:22PM +0200, Oliver Neukum wrote: > On Tuesday 04 September 2012 22:24:38 Aaron Lu wrote: > > From: Aaron Lu <aaron.lu@xxxxxxxxx> > > > > Add a new flag may_power_off for scsi device, it gives the user a chance > > to control when the device is runtime suspended, can we remove its power > > if possible. > > > > And if the device can be powered off(reflected by can_power_off flag, > > determined by individual driver), create a sysfs entry named > > may_power_off to let user control the flag. > > Do we really need yet another interface to user space? We do not have a way to let user decide when device is runtime suspended, can we remove its power, so I added this flag. PCI subsystem has a similar flag named d3cold_allowed. This flag can disable the power off of ZPODD capable devices, or put a rotational disk into powered off if user so choose. Thanks, Aaron -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html