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

Commit 522b089b authored by Pratham Pratap's avatar Pratham Pratap
Browse files

usb: dwc3: Change TXFIFO size for GSI IN EP based on controller



Decide the TXFIFO size for GSI IN EP based on USB controller
version.

Change-Id: I7716f47c041b63ebc36325389dc0e4c4eb2b1a00
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent af207bbd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -231,7 +231,8 @@ int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc, struct dwc3_ep *dep)
		mult = 3;

	if ((dep->endpoint.maxburst > 2) &&
			dep->endpoint.ep_type == EP_TYPE_GSI)
			dep->endpoint.ep_type == EP_TYPE_GSI
			&& dwc3_is_usb31(dwc))
		mult = 6;

	tmp = ((max_packet + mdwidth) * mult) + mdwidth;