usb: dwc3: gadget: always try to prepare on started_list first
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 25 Oct 2016 10:48:52 +0000 (13:48 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:40 +0000 (10:38 +0200)
commitd86c5a676e5b1ee89da0cf9c845760c36cfde6d3
treefe6d3403cd3c691453b25d5b9b94bba6fa09e02d
parente62c5bc57367ac277b932571943c9a09e737ad88
usb: dwc3: gadget: always try to prepare on started_list first

In cases where we're given an SG-list which is
longer than the amount of currently available TRBs,
we will be left with the same request on
started_list and we should prioritize that request
over possible new requests on pending_list. That's
a way to guarantee requests complete in order.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c