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

Commit 52141fa9 authored by Ivaylo Georgiev's avatar Ivaylo Georgiev
Browse files

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



This reverts commit 16831495.

This is a preparation change for merging android-4.19-q.90 into
msm-4.19 branch.

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

Change-Id: I901a0c0a86311b21cb6ee11cb9fcd4f09b5f7b0c
Reported-by: default avatarJack Pham <jackp@codeaurora.org>
Signed-off-by: default avatarIvaylo Georgiev <irgeorgiev@codeaurora.org>
parent e7f7ced0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2295,7 +2295,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;