]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: dwc3: Correct clean up code for requests
authorLukasz Majewski <l.majewski@samsung.com>
Tue, 3 Mar 2015 16:32:15 +0000 (17:32 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:12 +0000 (21:47 +0200)
commit0c16db9fb60f9efa9b8d86347c9c29f2f57e126e
treea7bcc0ffe2ed28e08a903465c4a316ba099d0065
parent1d1159b01573e945c0692657f77a95f6e5d1956b
usb: dwc3: Correct clean up code for requests

For u-boot dwc3 driver the scatter gather list support has been removed
from original linux code. It is correct, since we try to send one request
at a time.
However, the cleanup left spurious break, which caused early exit from
loop at dwc3_cleanup_done_reqs() function. As a result the dwc3_gadget_giveback()
wasn't called and caused USB Mass Storage to hang.

This commit removes this problem and refactor the code to remove superfluous
do { } while(1) loop.

Test HW: Odroid XU3 (with ./test/ums/ums_gadget_test.sh)

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/dwc3/gadget.c