Commit ff377ae4 authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: gadget: always kick if num_pending_sgs > 0

When we get a half-way processed request, we should
make sure to try to prepare further TRBs for it or
for any possibly queued up request held in our
pending_list. This will make sure our controller is
kept busy for as long as possible.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 7282c4ef
...@@ -2123,8 +2123,7 @@ static int dwc3_cleanup_done_reqs(struct dwc3 *dwc, struct dwc3_ep *dep, ...@@ -2123,8 +2123,7 @@ static int dwc3_cleanup_done_reqs(struct dwc3 *dwc, struct dwc3_ep *dep,
req->request.actual = length - req->remaining; req->request.actual = length - req->remaining;
if (ret && chain && (req->request.actual < length) if ((req->request.actual < length) && req->num_pending_sgs)
&& req->num_pending_sgs)
return __dwc3_gadget_kick_transfer(dep, 0); return __dwc3_gadget_kick_transfer(dep, 0);
dwc3_gadget_giveback(dep, req, status); dwc3_gadget_giveback(dep, req, status);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment