]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: Wait for transfer completion
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Wed, 6 May 2020 02:46:57 +0000 (19:46 -0700)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:41 +0000 (11:09 +0300)
commitf261aa20d83b45098b92fe77739118ad2efb59c9
tree0f649dfb131a75dddd8459f43ecc7db1766f83e4
parent04056f9d45bb93319fb1d14aa6cffb38a24463cc
usb: dwc3: gadget: Wait for transfer completion

If a transfer is in-progress, any new request should not kick off
another transfer. The driver needs to wait for the current transfer to
complete before starting off the next transfer. Introduce a new flag
DWC3_EP_WAIT_TRANSFER_COMPLETE for this.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c