18c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/devices/.../power/persist
28c2ecf20Sopenharmony_ciDate:		May 2007
38c2ecf20Sopenharmony_ciKernelVersion:	2.6.23
48c2ecf20Sopenharmony_ciContact:	Alan Stern <stern@rowland.harvard.edu>
58c2ecf20Sopenharmony_ciDescription:
68c2ecf20Sopenharmony_ci		USB device directories can contain a file named power/persist.
78c2ecf20Sopenharmony_ci		The file holds a boolean value (0 or 1) indicating whether or
88c2ecf20Sopenharmony_ci		not the "USB-Persist" facility is enabled for the device.  For
98c2ecf20Sopenharmony_ci		hubs this facility is always enabled and their device
108c2ecf20Sopenharmony_ci		directories will not contain this file.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci		For more information, see Documentation/driver-api/usb/persist.rst.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/devices/.../power/autosuspend
158c2ecf20Sopenharmony_ciDate:		March 2007
168c2ecf20Sopenharmony_ciKernelVersion:	2.6.21
178c2ecf20Sopenharmony_ciContact:	Alan Stern <stern@rowland.harvard.edu>
188c2ecf20Sopenharmony_ciDescription:
198c2ecf20Sopenharmony_ci		Each USB device directory will contain a file named
208c2ecf20Sopenharmony_ci		power/autosuspend.  This file holds the time (in seconds)
218c2ecf20Sopenharmony_ci		the device must be idle before it will be autosuspended.
228c2ecf20Sopenharmony_ci		0 means the device will be autosuspended as soon as
238c2ecf20Sopenharmony_ci		possible.  Negative values will prevent the device from
248c2ecf20Sopenharmony_ci		being autosuspended at all, and writing a negative value
258c2ecf20Sopenharmony_ci		will resume the device if it is already suspended.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci		The autosuspend delay for newly-created devices is set to
288c2ecf20Sopenharmony_ci		the value of the usbcore.autosuspend module parameter.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/device/.../power/connected_duration
318c2ecf20Sopenharmony_ciDate:		January 2008
328c2ecf20Sopenharmony_ciKernelVersion:	2.6.25
338c2ecf20Sopenharmony_ciContact:	Sarah Sharp <sarah.a.sharp@intel.com>
348c2ecf20Sopenharmony_ciDescription:
358c2ecf20Sopenharmony_ci		If CONFIG_PM is enabled, then this file is present.  When read,
368c2ecf20Sopenharmony_ci		it returns the total time (in msec) that the USB device has been
378c2ecf20Sopenharmony_ci		connected to the machine.  This file is read-only.
388c2ecf20Sopenharmony_ciUsers:
398c2ecf20Sopenharmony_ci		PowerTOP <powertop@lists.01.org>
408c2ecf20Sopenharmony_ci		https://01.org/powertop/
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/device/.../power/active_duration
438c2ecf20Sopenharmony_ciDate:		January 2008
448c2ecf20Sopenharmony_ciKernelVersion:	2.6.25
458c2ecf20Sopenharmony_ciContact:	Sarah Sharp <sarah.a.sharp@intel.com>
468c2ecf20Sopenharmony_ciDescription:
478c2ecf20Sopenharmony_ci		If CONFIG_PM is enabled, then this file is present.  When read,
488c2ecf20Sopenharmony_ci		it returns the total time (in msec) that the USB device has been
498c2ecf20Sopenharmony_ci		active, i.e. not in a suspended state.  This file is read-only.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci		Tools can use this file and the connected_duration file to
528c2ecf20Sopenharmony_ci		compute the percentage of time that a device has been active.
538c2ecf20Sopenharmony_ci		For example::
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci		  echo $((100 * `cat active_duration` / `cat connected_duration`))
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci		will give an integer percentage.  Note that this does not
588c2ecf20Sopenharmony_ci		account for counter wrap.
598c2ecf20Sopenharmony_ciUsers:
608c2ecf20Sopenharmony_ci		PowerTOP <powertop@lists.01.org>
618c2ecf20Sopenharmony_ci		https://01.org/powertop/
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/devices/<busnum>-<port[.port]>...:<config num>-<interface num>/supports_autosuspend
648c2ecf20Sopenharmony_ciDate:		January 2008
658c2ecf20Sopenharmony_ciKernelVersion:	2.6.27
668c2ecf20Sopenharmony_ciContact:	Sarah Sharp <sarah.a.sharp@intel.com>
678c2ecf20Sopenharmony_ciDescription:
688c2ecf20Sopenharmony_ci		When read, this file returns 1 if the interface driver
698c2ecf20Sopenharmony_ci		for this interface supports autosuspend.  It also
708c2ecf20Sopenharmony_ci		returns 1 if no driver has claimed this interface, as an
718c2ecf20Sopenharmony_ci		unclaimed interface will not stop the device from being
728c2ecf20Sopenharmony_ci		autosuspended if all other interface drivers are idle.
738c2ecf20Sopenharmony_ci		The file returns 0 if autosuspend support has not been
748c2ecf20Sopenharmony_ci		added to the driver.
758c2ecf20Sopenharmony_ciUsers:
768c2ecf20Sopenharmony_ci		USB PM tool
778c2ecf20Sopenharmony_ci		git://git.moblin.org/users/sarah/usb-pm-tool/
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/device/.../avoid_reset_quirk
808c2ecf20Sopenharmony_ciDate:		December 2009
818c2ecf20Sopenharmony_ciContact:	Oliver Neukum <oliver@neukum.org>
828c2ecf20Sopenharmony_ciDescription:
838c2ecf20Sopenharmony_ci		Writing 1 to this file tells the kernel that this
848c2ecf20Sopenharmony_ci		device will morph into another mode when it is reset.
858c2ecf20Sopenharmony_ci		Drivers will not use reset for error handling for
868c2ecf20Sopenharmony_ci		such devices.
878c2ecf20Sopenharmony_ciUsers:
888c2ecf20Sopenharmony_ci		usb_modeswitch
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/devices/.../devnum
918c2ecf20Sopenharmony_ciKernelVersion:	since at least 2.6.18
928c2ecf20Sopenharmony_ciDescription:
938c2ecf20Sopenharmony_ci		Device address on the USB bus.
948c2ecf20Sopenharmony_ciUsers:
958c2ecf20Sopenharmony_ci		libusb
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/devices/.../bConfigurationValue
988c2ecf20Sopenharmony_ciKernelVersion:	since at least 2.6.18
998c2ecf20Sopenharmony_ciDescription:
1008c2ecf20Sopenharmony_ci		bConfigurationValue of the *active* configuration for the
1018c2ecf20Sopenharmony_ci		device. Writing 0 or -1 to bConfigurationValue will reset the
1028c2ecf20Sopenharmony_ci		active configuration (unconfigure the device). Writing
1038c2ecf20Sopenharmony_ci		another value will change the active configuration.
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci		Note that some devices, in violation of the USB spec, have a
1068c2ecf20Sopenharmony_ci		configuration with a value equal to 0. Writing 0 to
1078c2ecf20Sopenharmony_ci		bConfigurationValue for these devices will install that
1088c2ecf20Sopenharmony_ci		configuration, rather then unconfigure the device.
1098c2ecf20Sopenharmony_ci
1108c2ecf20Sopenharmony_ci		Writing -1 will always unconfigure the device.
1118c2ecf20Sopenharmony_ciUsers:
1128c2ecf20Sopenharmony_ci		libusb
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/devices/.../busnum
1158c2ecf20Sopenharmony_ciKernelVersion:	2.6.22
1168c2ecf20Sopenharmony_ciDescription:
1178c2ecf20Sopenharmony_ci		Bus-number of the USB-bus the device is connected to.
1188c2ecf20Sopenharmony_ciUsers:
1198c2ecf20Sopenharmony_ci		libusb
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/devices/.../descriptors
1228c2ecf20Sopenharmony_ciKernelVersion:	2.6.26
1238c2ecf20Sopenharmony_ciDescription:
1248c2ecf20Sopenharmony_ci		Binary file containing cached descriptors of the device. The
1258c2ecf20Sopenharmony_ci		binary data consists of the device descriptor followed by the
1268c2ecf20Sopenharmony_ci		descriptors for each configuration of the device.
1278c2ecf20Sopenharmony_ci		Note that the wTotalLength of the config descriptors can not
1288c2ecf20Sopenharmony_ci		be trusted, as the device may have a smaller config descriptor
1298c2ecf20Sopenharmony_ci		than it advertises. The bLength field of each (sub) descriptor
1308c2ecf20Sopenharmony_ci		can be trusted, and can be used to seek forward one (sub)
1318c2ecf20Sopenharmony_ci		descriptor at a time until the next config descriptor is found.
1328c2ecf20Sopenharmony_ci		All descriptors read from this file are in bus-endian format
1338c2ecf20Sopenharmony_ciUsers:
1348c2ecf20Sopenharmony_ci		libusb
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ciWhat:		/sys/bus/usb/devices/.../speed
1378c2ecf20Sopenharmony_ciKernelVersion:	since at least 2.6.18
1388c2ecf20Sopenharmony_ciDescription:
1398c2ecf20Sopenharmony_ci		Speed the device is connected with to the usb-host in
1408c2ecf20Sopenharmony_ci		Mbit / second. IE one of 1.5 / 12 / 480 / 5000.
1418c2ecf20Sopenharmony_ciUsers:
1428c2ecf20Sopenharmony_ci		libusb
143