This is xHCI USB2 hardware LPM patchset v3. Changelog from v2: 1. Pass hcd pointer to xhci_usb2_software_lpm_test() and xhci_set_usb2_hardware_lpm() directly; 2. Remove the "Stop device in U0 state" patch. When suspend a port, resume it into U0 first; 3. Test and set LPM only when CONFIG_USB_SUSPEND is enabled; 4. When usbcore suspend a port, it will disable hardware LPM first, and enable it when resume complete; 5. Add sysfs support to hardware LPM, so user can enable/disable it manually. Thanks, Andiry --- Andiry Xu (9): usbcore: get BOS descriptor set usbcore: check device's LPM capability xHCI: set link state xHCI: test and clear RWC bit xHCI: Clear PLC for USB2 root hub ports xHCI: Check host USB2 LPM capability xHCI: test USB2 software LPM xHCI: set USB2 hardware LPM usbcore: add sysfs support to xHCI usb2 hardware LPM Documentation/usb/power-management.txt | 29 ++++ drivers/usb/core/config.c | 103 +++++++++++++ drivers/usb/core/driver.c | 14 ++ drivers/usb/core/hub.c | 20 +++ drivers/usb/core/sysfs.c | 56 +++++++ drivers/usb/core/usb.c | 1 + drivers/usb/core/usb.h | 7 + drivers/usb/host/xhci-ext-caps.h | 6 + drivers/usb/host/xhci-hub.c | 103 +++++++------- drivers/usb/host/xhci-mem.c | 28 ++++ drivers/usb/host/xhci-pci.c | 5 + drivers/usb/host/xhci-ring.c | 16 +- drivers/usb/host/xhci.c | 246 ++++++++++++++++++++++++++++++++ drivers/usb/host/xhci.h | 29 ++++- include/linux/usb.h | 16 ++ include/linux/usb/hcd.h | 1 + 16 files changed, 622 insertions(+), 58 deletions(-) -- 1.7.4.1 -- 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