diff options
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | 2019-04-25 23:28:24 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-05-03 08:13:49 +0200 |
commit | c729969b2b692ce3ed362e60d38391e7671758ff (patch) | |
tree | b4456199d0618146bb0c96d46449e84ced7e72d8 /drivers/usb/dwc3 | |
parent | usb: gadget: atmel: tie wake lock to running clock (diff) | |
download | linux-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/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 1 |
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 |