]> asedeno.scripts.mit.edu Git - linux.git/commit
uas: Limit qdepth to 32 when connected over usb-2
authorHans de Goede <hdegoede@redhat.com>
Fri, 1 Aug 2014 15:33:08 +0000 (17:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 22:48:08 +0000 (15:48 -0700)
commite2875c33787ebda21aeecc1a9d3ff52b3aa413ec
treee87c807803a82ab7ca220079f590979e0f991056
parent3dbef993c0eb113bf8e85abff8dd57fa33d5bb9b
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>
drivers/usb/storage/uas.c