summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>2019-04-25 23:28:24 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-05-03 08:13:49 +0200
commitc729969b2b692ce3ed362e60d38391e7671758ff (patch)
treeb4456199d0618146bb0c96d46449e84ced7e72d8 /drivers/usb
parentusb: gadget: atmel: tie wake lock to running clock (diff)
downloadlinux-c729969b2b692ce3ed362e60d38391e7671758ff.tar.xz
linux-c729969b2b692ce3ed362e60d38391e7671758ff.zip
usb: dwc3: gadget: Set lpm_capable
All DWC3 controllers are LPM capable. Report that in the usb_gadget.lpm_capable for the gadget driver to properly output the bcdUSB value in the descriptor. Signed-off-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc3/gadget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 2bb0ff9608d3..ab53f7103de4 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -3301,6 +3301,7 @@ int dwc3_gadget_init(struct dwc3 *dwc)
dwc->gadget.sg_supported = true;
dwc->gadget.name = "dwc3-gadget";
dwc->gadget.is_otg = dwc->dr_mode == USB_DR_MODE_OTG;
+ dwc->gadget.lpm_capable = true;
/*
* FIXME We might be setting max_speed to <SUPER, however versions