Merge "usb: dwc3: gadget: Bail out for short packets/ZLPs only if IOC is not set"

This commit is contained in:
qctecmdr 2021-03-01 10:10:55 -08:00 • committed by Gerrit - the friendly Code Review server
commit 67000e0bbe

View file

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