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

Commit f47b4920 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3: gadget: Avoid starting next transfer if transfer is active"

parents 9a0eb93e 922f640c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2621,6 +2621,14 @@ static void dwc3_endpoint_interrupt(struct dwc3 *dwc,
					? "Transfer Active"
					: "Transfer Not Active");

			/*
			 * If XFERNOTREADY interrupt is received with event
			 * status as TRANSFER ACTIVE, don't kick next transfer.
			 * otherwise data stall is seen on that endpoint.
			 */
			if (event->status & DEPEVT_STATUS_TRANSFER_ACTIVE)
				return;

			ret = __dwc3_gadget_kick_transfer(dep, 0, 1);
			if (!ret || ret == -EBUSY)
				return;