This series contains patches which are already have been sent in "usb: dwc2: fixes, enhancements and new features" series. That patch series was too large, and based on community feedbacks decided to split that series into small pieces. This is a fourth and last part. In this series we included only patches related with hibernation stuff. All patches were tested on HAPS-DX7 platform. Changes from version 0: Rebased to testing/next Changes after first submission: usb: dwc2: Add hibernation feature support (Hibernation): usb: dwc2: gadget: Fix dwc2_restore_device_registers - Added WA in dwc2_restore_device_registers() function for enabled EPx's IN in DDMA mode for not to get BNA Interrupt asserted on hibernation exit. usb: dwc2: Add helper functions for restore routine - Added argument is_host to determine if core is in host mode or not and changed some udelay values in dwc2_hib_restore_common() function. - Added is_host function parameter to determine being in host mode, checking host mode to set pcgcctl properly and changed hard coded numbers to defined values also changed the logic of loading restore values for [31:14] bits in dwc2_restore_essential_regs() function. usb: dwc2: Add dwc2_handle_gpwrdn_intr() handler - Fixed a minor bug: added checks for determine hibernation exiting flows in dwc2_handle_gpwrdn_intr() function. Also changed the way of clearing all interrupts. usb: dwc2: Add host/device hibernation functions - dwc2_gadget_enter_hibernation() fixed some minor bugs, phy clock now remains not stopped. Added unmasking of GPWRDN_STS_CHGINT_MSK device mode interrupts in GPWRDN. - dwc2_host_enter_hibernation() added a udelay after writing in gpwrdn register. John Youn (1): usb: dwc2: Enable power down Vardan Mikayelyan (13): usb: dwc2: Rename hibernation to partial_power_down usb: dwc2: Add hibernation field into dwc2_hw_params usb: dwc2: gadget: Moved dtxfsiz backup array place usb: dwc2: gadget: Fix dwc2_restore_device_registers usb: dwc2: core: Add hibernated flag usb: dwc2: gadget: Add remote_wakeup_allowed flag usb: dwc2: Changes in registers backup/restore functions usb: dwc2: Add helper functions for restore routine usb: dwc2: Add host/device hibernation functions usb: dwc2: Add dwc2_enter_hibernation(), dwc2_exit_hibernation() usb: dwc2: Allow entering hibernation from USB_SUSPEND interrupt usb: dwc2: Add dwc2_handle_gpwrdn_intr() handler usb: dwc2: Change hub-control to allow hibernation drivers/usb/dwc2/core.c | 210 ++++++++++++++++++++++++++++++--- drivers/usb/dwc2/core.h | 69 ++++++++--- drivers/usb/dwc2/core_intr.c | 179 ++++++++++++++++++++++++---- drivers/usb/dwc2/debugfs.c | 2 +- drivers/usb/dwc2/gadget.c | 227 +++++++++++++++++++++++++++++++++--- drivers/usb/dwc2/hcd.c | 269 ++++++++++++++++++++++++++++++++++++++++--- drivers/usb/dwc2/params.c | 50 +++++++- drivers/usb/dwc2/platform.c | 1 + 8 files changed, 917 insertions(+), 90 deletions(-) -- 2.11.0 -- 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