]> git.baikalelectronics.ru Git - kernel.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)
commit2d07c2d60257f76d8d3ac93e4dcddb548e355ef5
treee87c807803a82ab7ca220079f590979e0f991056
parent503c8b2a7e6a94ba399a18c0c28a0f5d19cf45de
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