]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc2: Fix control OUT transfer issue
authorChance.Yang <chance.yang@vatics.com>
Tue, 6 Oct 2020 02:55:49 +0000 (10:55 +0800)
committerMarek Vasut <marex@denx.de>
Mon, 19 Oct 2020 22:48:58 +0000 (00:48 +0200)
commit30656802355313a87d832f282d4112b403ed7131
treeb6300459af9d6b7f555f02e5a8c1fbbb6cad83b3
parent3fade88686e71c9acee4cbeb3ae9706bbc845608
usb: dwc2: Fix control OUT transfer issue

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 external memory.

Signed-off-by: Chance.Yang <chance.yang@vatics.com>
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c