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

2020-10-05 Thread Marek Vasut
On 10/5/20 9:11 AM, Chance.Yang wrote: Please fix the "contorl" typo on subject, should be "control" [...] > @@ -441,10 +444,17 @@ static void process_ep_out_intr(struct dwc2_udc *dev) > > if (ep_num == 0) { > if (ep_intr_status & TRANSFER_DO

[PATCH v2] usb: dwc2: Fix contorl 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