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

Commit 796d2c60 authored by Blagovest Kolenichev's avatar Blagovest Kolenichev
Browse files

Revert "usb: dwc3: gadget: Fix logical condition"



This reverts commit a7f7e612.

This is a preparation change for merging android-5.4.5 into
msm-5.4 branch.

The reverted change is basically preventing the adbd userspace
daemon from ever receiving packets from the kernel USB driver.

Change-Id: I083e78968b72e8e0c4529d732c3b1ab5f9946224
Reported-by: default avatarJack Pham <jackp@codeaurora.org>
Signed-off-by: default avatarBlagovest Kolenichev <bkolenichev@codeaurora.org>
parent 816cd2b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2491,7 +2491,7 @@ static int dwc3_gadget_ep_cleanup_completed_request(struct dwc3_ep *dep,

	req->request.actual = req->request.length - req->remaining;

	if (!dwc3_gadget_ep_request_completed(req) ||
	if (!dwc3_gadget_ep_request_completed(req) &&
			req->num_pending_sgs) {
		__dwc3_gadget_kick_transfer(dep);
		goto out;