Skip to content

Commit e2875c3

Browse files
jwrdegoedegregkh
authored andcommitted
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: [email protected] Tested-and-reported-by: Laszlo T. <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3dbef99 commit e2875c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/storage/uas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ static int uas_configure_endpoints(struct uas_dev_info *devinfo)
10261026
usb_endpoint_num(&eps[3]->desc));
10271027

10281028
if (udev->speed != USB_SPEED_SUPER) {
1029-
devinfo->qdepth = 256;
1029+
devinfo->qdepth = 32;
10301030
devinfo->use_streams = 0;
10311031
} else {
10321032
devinfo->qdepth = usb_alloc_streams(devinfo->intf, eps + 1,

0 commit comments

Comments
 (0)