From: Hans de Goede Date: Sat, 13 Sep 2014 10:26:43 +0000 (+0200) Subject: uas: Use streams on upcoming 10Gbps / 3.1 USB X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e5e558192f01857254938349f78cd492daee7d72;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git uas: Use streams on upcoming 10Gbps / 3.1 USB Limit the no-streams case to speeds less then USB_SPEED_SUPER. Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index 8d2e5450de91..c69b9c5bb265 100644 --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c @@ -925,7 +925,7 @@ static int uas_configure_endpoints(struct uas_dev_info *devinfo) devinfo->data_out_pipe = usb_sndbulkpipe(udev, usb_endpoint_num(&eps[3]->desc)); - if (udev->speed != USB_SPEED_SUPER) { + if (udev->speed < USB_SPEED_SUPER) { devinfo->qdepth = 32; devinfo->use_streams = 0; } else {