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>
This commit is contained in:
Родитель
1e6b98ebd4
Коммит
552d940f0b
|
@ -3007,6 +3007,8 @@ static void dwc2_hsotg_irq_enumdone(struct dwc2_hsotg *hsotg)
|
||||||
|
|
||||||
case DSTS_ENUMSPD_LS:
|
case DSTS_ENUMSPD_LS:
|
||||||
hsotg->gadget.speed = USB_SPEED_LOW;
|
hsotg->gadget.speed = USB_SPEED_LOW;
|
||||||
|
ep0_mps = 8;
|
||||||
|
ep_mps = 8;
|
||||||
/*
|
/*
|
||||||
* note, we don't actually support LS in this driver at the
|
* note, we don't actually support LS in this driver at the
|
||||||
* moment, and the documentation seems to imply that it isn't
|
* moment, and the documentation seems to imply that it isn't
|
||||||
|
|
Загрузка…
Ссылка в новой задаче