Re: Mass storage suspend questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 12 Jan 2012, Oliver Neukum wrote:

> Am Donnerstag, 12. Januar 2012, 03:01:04 schrieb Alan Stern:
> > Besides, what's usb-storage going to do if a CD drive does send a
> > wakeup request?  usb-storage doesn't initiate any SCSI commands on its
> > own.  All that will happen is the autosuspend timer will expire and the
> > drive will be suspended again.
> 
> The answer would clearly be to do nothing but for another reason.
> Storage is an interface driver and we can never rule out that
> another or indeed multiple interfaces caused a wakeup.
> 
> That argues for solving this is at the device level. Should we
> make a file in sysfs poll()able for wakeup?

Indeed, I think it would make a lot of sense for 
/sys/.../power/runtime_status to be pollable.  This would require 
it to be present always, not just when CONFIG_PM_ADVANCED_DEBUG is on.

Rafael, any objection?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux