commit | 346a15cdf65263d8a8dfdbc5d2702471a2dcef6c | [log] [tgz] |
---|---|---|
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | Wed Sep 30 17:44:32 2020 -0700 |
committer | Felipe Balbi <balbi@kernel.org> | Fri Oct 02 09:57:46 2020 +0300 |
tree | 7ff47793daf89205902ee534ee655fb74d0120cf | |
parent | 8dbbe48c7a9989c75e39bfb2a886e163fa21660a [diff] |
usb: dwc3: gadget: Keep TRBs in request order If we couldn't finish preparing all the TRBs of a request, don't prepare the next request. Otherwise, the TRBs order will be mixed up and the controller will process the wrong TRB. This is a corner case where there's not enough TRBs for a request that needs the extra TRB but there's still 1 available TRB in the pool. Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>