uas: Use streams on upcoming 10Gbps / 3.1 USB
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Sep 2014 10:26:43 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:42:11 +0000 (21:42 -0700)
Limit the no-streams case to speeds less then USB_SPEED_SUPER.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c

index 8d2e5450de91eaf5d9d403307ea7363b97569519..c69b9c5bb26538136e0268dffe53f258cdcb353d 100644 (file)
@@ -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 {