]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: dwc3: gadget: Set lpm_capable
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 25 Apr 2019 21:28:24 +0000 (14:28 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:49 +0000 (09:13 +0300)
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>
drivers/usb/dwc3/gadget.c

index 2bb0ff9608d30b77abc583e99d279fa355ed7a2c..ab53f7103de4dd2c18283f5811a71e14a23279a1 100644 (file)
@@ -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