summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-11-12 10:51:33 +0100
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2014-03-05 00:38:21 +0100
commitf323abcda35ea4bae851c9be8f115ee45cc9cf22 (patch)
treefc199972e8b017f23631fb061f43f1cabbe7ece0
parentuas: Reset device on reboot (diff)
downloadlinux-f323abcda35ea4bae851c9be8f115ee45cc9cf22.tar.xz
linux-f323abcda35ea4bae851c9be8f115ee45cc9cf22.zip
uas: Fix task-management not working when connected over USB-2
For USB-2 connections the stream-id must always be 0. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
-rw-r--r--drivers/usb/storage/uas.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
index 019f2030ea0c..10e580e56d4c 100644
--- a/drivers/usb/storage/uas.c
+++ b/drivers/usb/storage/uas.c
@@ -746,7 +746,8 @@ static int uas_eh_task_mgmt(struct scsi_cmnd *cmnd,
devinfo->running_task = 1;
memset(&devinfo->response, 0, sizeof(devinfo->response));
- sense_urb = uas_submit_sense_urb(shost, GFP_NOIO, tag);
+ sense_urb = uas_submit_sense_urb(shost, GFP_NOIO,
+ devinfo->use_streams ? tag : 0);
if (!sense_urb) {
shost_printk(KERN_INFO, shost,
"%s: %s: submit sense urb failed\n",