mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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:
parent
816cd2b9fd
commit
796d2c6089
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue