This patch set, fixes and improves hibernation flow. Mainly, fixes hibernation for switching between host and device modes. Adds enabling/disabling of power optimization parameter. Artur Petrosyan (3): usb: dwc2: Add default param to control power optimization. usb: dwc2: Update dwc2_handle_usb_suspend_intr function. usb: dwc2: Fix hibernation between host and device modes. drivers/usb/dwc2/core.h | 3 +++ drivers/usb/dwc2/core_intr.c | 32 ++++++++++++++++---------------- drivers/usb/dwc2/debugfs.c | 2 ++ drivers/usb/dwc2/hcd.c | 3 +++ drivers/usb/dwc2/params.c | 19 +++++++++++++------ 5 files changed, 37 insertions(+), 22 deletions(-) -- 2.11.0