]> 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)
commitfc874b20c6e29b6746dff3ea052184c47eaff2db
tree82504e93b38f3793c294ae4168800bbd42d85d7e
parent2c106cdbeac665674a1e549bc5db54b00fcb3526
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