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

Commit b6271df1 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

Revert "usb: dwc3: gadget: use update transfer command"



This reverts commit 6bb4fe12
("usb: dwc3: gadget: use update transfer command"). If we get
a Xfer Not Ready event with reason "Transfer Active" issuing
update transfer for the endpoint for any pending request
results into transfer stall on the endpoint. Hence do not use
update transfer command for on-demad transfers.

Change-Id: Iec1c5913efe1dd266506f973951f22a2170fce77
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent f5a8583f
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -2585,16 +2585,15 @@ static void dwc3_endpoint_interrupt(struct dwc3 *dwc,
		if (usb_endpoint_xfer_isoc(dep->endpoint.desc)) {
			dwc3_gadget_start_isoc(dwc, dep, event);
		} else {
			int active;
			int ret;

			active = event->status & DEPEVT_STATUS_TRANSFER_ACTIVE;

			dwc3_trace(trace_dwc3_gadget, "%s: reason %s",
					dep->name, active ? "Transfer Active"
					dep->name, event->status &
					DEPEVT_STATUS_TRANSFER_ACTIVE
					? "Transfer Active"
					: "Transfer Not Active");

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