Merge "usb: xhci: Set bulk EP maxpacket to 8 for buggy FS devices"

This commit is contained in:
Linux Build Service Account 2017-03-07 16:55:50 -08:00 committed by Gerrit - the friendly Code Review server
commit ac95e8f4e5

View file

@ -1476,6 +1476,8 @@ int xhci_endpoint_init(struct xhci_hcd *xhci,
} }
break; break;
case USB_SPEED_FULL: case USB_SPEED_FULL:
if (usb_endpoint_xfer_bulk(&ep->desc) && max_packet < 8)
max_packet = 8;
case USB_SPEED_LOW: case USB_SPEED_LOW:
break; break;
default: default: