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

Commit ef529d56 authored by Mayank Rana's avatar Mayank Rana Committed by Hemant Kumar
Browse files

Revert "usb: dwc3: fix TRB completion when multiple TRBs are started"



commit 0b93a4c8 ("usb: dwc3: fix TRB completion when multiple TRBs
are started") enables XFERINPROGRESS event with all endpoint type
except control endpoint. Currently we are not using XFERINPROGRESS for
queuing next request and depends on XFERNOTREADY event only.

Change-Id: I833c2311c5af48fd15f2813df9cc83c3471c4f94
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 9c8924db
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -539,7 +539,7 @@ static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep,
		dep->stream_capable = true;
	}

	if (!usb_endpoint_xfer_control(desc))
	if (usb_endpoint_xfer_isoc(desc))
		params.param1 |= DWC3_DEPCFG_XFER_IN_PROGRESS_EN;

	/*
@@ -2564,6 +2564,12 @@ static void dwc3_endpoint_interrupt(struct dwc3 *dwc,
		break;
	case DWC3_DEPEVT_XFERINPROGRESS:
		dep->dbg_ep_events.xferinprogress++;
		if (!usb_endpoint_xfer_isoc(dep->endpoint.desc)) {
			dev_dbg(dwc->dev, "%s is not an Isochronous endpoint\n",
					dep->name);
			return;
		}

		dwc3_endpoint_transfer_complete(dwc, dep, event);
		break;
	case DWC3_DEPEVT_XFERNOTREADY: