/sys/.../power/autosuspend format

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

 



Oliver:

For SCSI devices, the autosuspend idle-delay time will have to vary
from under one second up to an hour or so.  The current USB
/sys/.../power/autosuspend format, which simply lists the timeout in
seconds, won't be adequate.

I thought the format could be changed to [MM:]SS[.FFF] where MM is
minutes, SS is seconds, and FFF is milliseconds.  It would be backward
compatible with the existing format for input, although the output
appearance would be different.  The same format could be used for USB
as well (in fact, the attribute set and show routines could go in
the PM core, making them easy to share among subsystems).

What do you think?

For that matter, it might be a good idea to move the last_busy and
autosuspend_delay fields into the dev_pm_info structure, along with the
other runtime PM stuff.  Since they are going to be used by both SCSI
and USB, they probably will get used by other subsystems as well.

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