diff options
author | Vardan Mikayelyan <mvardan@synopsys.com> | 2016-11-15 04:17:00 +0100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-11-18 12:54:50 +0100 |
commit | 552d940f0bea0c010615b45ed7c64e7b3b103e6a (patch) | |
tree | e1668353660293260a0f2b665debc65f587b5114 | |
parent | usb: dwc2: gadget: Add IOT device IDs, configure core accordingly (diff) | |
download | linux-552d940f0bea0c010615b45ed7c64e7b3b103e6a.tar.xz linux-552d940f0bea0c010615b45ed7c64e7b3b103e6a.zip |
usb: dwc2: gadget: Program ep0_mps for LS
When device is enumerated in LS we should program ep0_mps accordingly.
USB2 spec says that in LS mode, control ep mps must be 8.
Signed-off-by: Vardan Mikayelyan <mvardan@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 74f0a5eed812..e67283237fd4 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -3007,6 +3007,8 @@ static void dwc2_hsotg_irq_enumdone(struct dwc2_hsotg *hsotg) case DSTS_ENUMSPD_LS: hsotg->gadget.speed = USB_SPEED_LOW; + ep0_mps = 8; + ep_mps = 8; /* * note, we don't actually support LS in this driver at the * moment, and the documentation seems to imply that it isn't |