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

Commit 67000e0b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 562954a4 12658022
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;