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

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

Merge "usb: xhci: Set bulk EP maxpacket to 8 for buggy FS devices" into msm-4.9

parents e08b057b 2d950c32
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1507,6 +1507,11 @@ int xhci_endpoint_init(struct xhci_hcd *xhci,
	/* Some devices get this wrong */
	if (usb_endpoint_xfer_bulk(&ep->desc) && udev->speed == USB_SPEED_HIGH)
		max_packet = 512;

	if (usb_endpoint_xfer_bulk(&ep->desc) && udev->speed == USB_SPEED_FULL
				&& max_packet < 8)
		max_packet = 8;

	/* xHCI 1.0 and 1.1 indicates that ctrl ep avg TRB Length should be 8 */
	if (usb_endpoint_xfer_control(&ep->desc) && xhci->hci_version >= 0x100)
		avg_trb_len = 8;