]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: Remove END_TRANSFER delay
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 19 Dec 2019 02:14:56 +0000 (18:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 09:39:23 +0000 (10:39 +0100)
commit6cc12d54dcc2900d7573ba77e799a5f0dff53052
tree82504e93b38f3793c294ae4168800bbd42d85d7e
parentfbbf03ab919b855bd0b6bfa3599bbf75ef9e7c7b
usb: dwc3: gadget: Remove END_TRANSFER delay

We had a 100us delay to synchronize the END_TRANSFER command completion
before giving back requests to the function drivers. Now, the controller
driver can handle cancelled TRBs with the requests' cancelled_list and
it can also wait until the END_TRANSFER completion before starting new
transfers. Synchronization can simply base on the controller's command
completion interrupt. The 100us delay is no longer needed. Remove this
arbitrary delay.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c