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

Commit 39b231e0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: enforce hardware restriction on TRB size"

parents a7152515 474866eb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -630,6 +630,12 @@ static int dwc3_msm_ep_queue(struct usb_ep *ep,
		dep->free_slot = 0;
	}

	/* HW restriction regarding TRB size (8KB) */
	if (req->request.length < 0x2000) {
		dev_err(mdwc->dev, "%s: Min TRB size is 8KB\n", __func__);
		return -EINVAL;
	}

	/*
	 * Override req->complete function, but before doing that,
	 * store it's original pointer in the req_complete_list.