mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
088f7fec8a
This patch (as1326) adds usb_enable_autosuspend() and usb_disable_autosuspend() routines for use by drivers. If a driver knows that its device can handle suspends and resumes correctly, it can enable autosuspend all by itself. This is equivalent to the user writing "auto" to the device's power/level attribute. The implementation differs slightly from what it used to be. Now autosuspend is disabled simply by doing usb_autoresume_device() (to increment the usage counter) and enabled by doing usb_autosuspend_device() (to decrement the usage counter). The set_level() attribute method is updated to use the new routines, and the USB Power-Management documentation is updated. The patch adds a usb_enable_autosuspend() call to the hub driver's probe routine, allowing the special-case code for hubs in quirks.c to be removed. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
||
---|---|---|
.. | ||
acm.txt | ||
anchors.txt | ||
authorization.txt | ||
callbacks.txt | ||
CREDITS | ||
dma.txt | ||
ehci.txt | ||
error-codes.txt | ||
gadget_printer.txt | ||
gadget_serial.txt | ||
hiddev.txt | ||
hotplug.txt | ||
iuu_phoenix.txt | ||
linux.inf | ||
misc_usbsevseg.txt | ||
mtouchusb.txt | ||
ohci.txt | ||
persist.txt | ||
power-management.txt | ||
proc_usb_info.txt | ||
rio.txt | ||
URB.txt | ||
usb-help.txt | ||
usb-serial.txt | ||
usbmon.txt | ||
wusb-cbaf | ||
WUSB-Design-overview.txt |