]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: Properly handle failed kick_transfer
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Sun, 29 Mar 2020 23:12:57 +0000 (16:12 -0700)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 08:00:12 +0000 (11:00 +0300)
commit58be8a28b2874479e6e32ad1089f62751e0d3946
tree6fe8af6a962a7c262584825cc7b1a0284c4f6ca8
parent1478dede8060847cc4591dfc4299f2e37c589041
usb: dwc3: gadget: Properly handle failed kick_transfer

If dwc3 fails to issue START_TRANSFER/UPDATE_TRANSFER command, then we
should properly end an active transfer and give back all the started
requests. However if it's for an isoc endpoint, the failure maybe due to
bus-expiry status. In this case, don't give back the requests and wait
for the next retry.

Fixes: 1e90ce98e30b ("usb: Introduce DesignWare USB3 DRD Driver")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c