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

This reverts commit a7f7e61270.

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: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
This commit is contained in:
Blagovest Kolenichev 2020-01-23 03:09:46 -08:00
commit 796d2c6089

View file

@ -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;