Re: [PATCH] usb: dwc2: Fix contorl OUT transfer issue

2020-09-22 Thread Marek Vasut
On 9/22/20 10:48 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 N

[PATCH] usb: dwc2: Fix contorl OUT transfer issue

2020-09-22 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