aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-08-01 11:33:08 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-01 18:48:08 -0400
commite2875c33787ebda21aeecc1a9d3ff52b3aa413ec (patch)
treee87c807803a82ab7ca220079f590979e0f991056
parent3dbef993c0eb113bf8e85abff8dd57fa33d5bb9b (diff)
uas: Limit qdepth to 32 when connected over usb-2
Some jmicron uas chipsets act up (they disconnect from the bus) when sending more then 32 commands to them at once. Rather then building an ever growing list with usb-id based quirks for devices using this chipset, simply reduce the qdepth to 32 when connected over usb-2. 32 should be plenty to keep things close to maximum possible throughput on usb-2. Cc: stable@vger.kernel.org Tested-and-reported-by: Laszlo T. <tlacix@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/storage/uas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
index 511b22953167..3f42785f653c 100644
--- a/drivers/usb/storage/uas.c
+++ b/drivers/usb/storage/uas.c
@@ -1026,7 +1026,7 @@ static int uas_configure_endpoints(struct uas_dev_info *devinfo)
1026 usb_endpoint_num(&eps[3]->desc)); 1026 usb_endpoint_num(&eps[3]->desc));
1027 1027
1028 if (udev->speed != USB_SPEED_SUPER) { 1028 if (udev->speed != USB_SPEED_SUPER) {
1029 devinfo->qdepth = 256; 1029 devinfo->qdepth = 32;
1030 devinfo->use_streams = 0; 1030 devinfo->use_streams = 0;
1031 } else { 1031 } else {
1032 devinfo->qdepth = usb_alloc_streams(devinfo->intf, eps + 1, 1032 devinfo->qdepth = usb_alloc_streams(devinfo->intf, eps + 1,