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

Commit 7d998f5d authored by Thinh Nguyen's avatar Thinh Nguyen Committed by Mayank Rana
Browse files

usb: dwc3: gadget: Don't clear flags before transfer ended



We track END_TRANSFER command completion. Don't clear transfer
started/ended flag prematurely. Otherwise, we'd run into the problem
with restarting transfer before END_TRANSFER command finishes.

Change-Id: I8290f204b58466879f15736fcc220b1c134df97a
Fixes: 6d8a0196 ("usb: dwc3: gadget: check for Missed Isoc from event status")
Signed-off-by: default avatarThinh Nguyen <thinhn@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
Git-commit: a114c4ca64bd522aec1790c7e5c60c882f699d8f
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent a6ae9f82
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2913,10 +2913,8 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3_ep *dep,

	dwc3_gadget_ep_cleanup_completed_requests(dep, event, status);

	if (stop) {
	if (stop)
		dwc3_stop_active_transfer(dep, true, true);
		dep->flags = DWC3_EP_ENABLED;
	}

	/*
	 * WORKAROUND: This is the 2nd half of U1/U2 -> U0 workaround.