Re: [PATCH v3] usb: dwc2: Fix control OUT transfer issue

2020-10-05 Thread Marek Vasut
On 10/6/20 4:55 AM, Chance.Yang wrote: > In buffer DMA mode, gadget should re-configure EP 0 to received SETUP > packets when doeptsiz.xfersize is equal to a setup packet size(8 bytes) > and EP 0 is in WAIT_FOR_SETUP state. > > Since EP 0 is not enabled in WAIT_FOR_SETUP state, SETUP packets is NO

[PATCH v3] usb: dwc2: Fix control OUT transfer issue

2020-10-05 Thread Chance . Yang
In buffer DMA mode, gadget should re-configure EP 0 to received SETUP packets when doeptsiz.xfersize is equal to a setup packet size(8 bytes) and EP 0 is in WAIT_FOR_SETUP state. Since EP 0 is not enabled in WAIT_FOR_SETUP state, SETUP packets is NOT received from RxFifo and wriiten to the externa