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

Commit 19ffbb0f authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Gerrit - the friendly Code Review server
Browse files

usb: dwc3: Fix incorrect PCM value for mult less than 2



For isochronous endpoints with mult less than 2, the
PCM value of the trb->size is set incorrectly.
For case of mult = 1, this is set to 0/-1 and for
mult = 0, this is set to -2.
This is because the initial mult is set to
ep->mult - 1. Fix this by setting the value of
initial value of mult to 2.

Change-Id: Ifa63d8c65564108303ce7c0d6e0cafeccf2ba47d
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 4f9559a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1087,7 +1087,7 @@ static void __dwc3_prepare_one_trb(struct dwc3_ep *dep, struct dwc3_trb *trb,
			 */
			if (speed == USB_SPEED_HIGH) {
				struct usb_ep *ep = &dep->endpoint;
				unsigned int mult = ep->mult - 1;
				unsigned int mult = 2;
				unsigned int maxp = usb_endpoint_maxp(ep->desc);

				if (length <= (2 * maxp))