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

Commit 7441c2d6 authored by Sriharsha Allenki's avatar Sriharsha Allenki
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 in 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>
parent c1c8fe5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -989,7 +989,7 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep,
			 */
			if (speed == USB_SPEED_HIGH) {
				struct usb_ep *ep = &dep->endpoint;
				unsigned int mult = ep->mult - 1;
				unsigned int mult = 2;
				unsigned int maxp;

				maxp = usb_endpoint_maxp(ep->desc) & 0x07ff;