Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d1d022e authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: dwc3: Avoid processing of TRB if HWO bit is set



If the HWO bit is set, the TRB is yet to be processed.
Hence avoid cleaning up of TRBs if HWO bit is set.

Change-Id: I5caa4a03ada395f9e7a64127ffad1fcff3be8369
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 34813ff0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2807,6 +2807,9 @@ static int dwc3_cleanup_done_reqs(struct dwc3 *dwc, struct dwc3_ep *dep,
		int chain;

		req = next_request(&dep->started_list);
		if (req->trb->ctrl & DWC3_TRB_CTRL_HWO)
			return 0;

		length = req->request.length;
		chain = req->num_pending_sgs > 0;
		if (chain) {