[PATCH 0/9] usb: dwc2: gadget: Add LPM functionality

From: Sevak Arakelyan
Date: Fri Apr 28 2017 - 04:46:42 EST


This series adds LPM functionality for gadget side. In USB 2 for LPM support
2.01 version and additional BOS descriptors needed to be sent to indicate
LPM support so usb: gadget: composite: was patched to support that.

Tested on HAPS platform with DWC_hsotg IP version 3.30a from device side
and from host side HAPS platform with DWC USB3 IP version 3.20a.

John Youn (3):
[HSLPM] usb: gadget: composite: Exclude SS Dev Cap Desc
[HSLPM] usb: gadget: Allow a non-SuperSpeed gadget to support LPM
[HSLPM] usb: dwc2: Enable LPM

Sevak Arakelyan (6):
usb: dwc2: Fix GLPMCFG... definitions
usb: dwc2: Add core parameters for LPM support
usb: dwc2: gadget: Add functionality to exit from LPM L1 state
usb: dwc2: gadget: LPM interrupt handler
usb: dwc2: Enable LPM Transaction Received interrupt.
usb: dwc2: gadget: Configure the core to enable LPM.

drivers/usb/dwc2/core.h | 22 ++++++++
drivers/usb/dwc2/core_intr.c | 113 ++++++++++++++++++++++++++++++++++++++++-
drivers/usb/dwc2/debugfs.c | 5 ++
drivers/usb/dwc2/gadget.c | 28 +++++++++-
drivers/usb/dwc2/hcd.c | 3 ++
drivers/usb/dwc2/hw.h | 38 +++++++-------
drivers/usb/dwc2/params.c | 13 +++++
drivers/usb/gadget/composite.c | 59 ++++++++++++---------
include/linux/usb/gadget.h | 3 ++
9 files changed, 239 insertions(+), 45 deletions(-)

--
2.11.0