mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "usb: dwc3: gadget: Bail out for short packets/ZLPs only if IOC is not set"
This commit is contained in:
commit
67000e0bbe
1 changed files with 2 additions and 1 deletions
|
|
@ -3064,7 +3064,8 @@ static int dwc3_gadget_ep_reclaim_completed_trb(struct dwc3_ep *dep,
|
|||
|
||||
if (req->needs_extra_trb && !(trb->ctrl & DWC3_TRB_CTRL_CHN)) {
|
||||
trb->ctrl &= ~DWC3_TRB_CTRL_HWO;
|
||||
return 1;
|
||||
return (((event->status & DEPEVT_STATUS_IOC) &&
|
||||
(trb->ctrl & DWC3_TRB_CTRL_IOC)) ? 1 : 0);
|
||||
}
|
||||
|
||||
count = trb->size & DWC3_TRB_SIZE_MASK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue