]> git.baikalelectronics.ru Git - uboot.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)
commiteb98561bcada7d8d9923096a6daf252b0c84c446
treeb6300459af9d6b7f555f02e5a8c1fbbb6cad83b3
parent26c4dd6130e640cd5c45057e3d17b47100913a09
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