mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 06:05:06 +00:00
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>
This commit is contained in:
parent
da65c2bb99
commit
f323abcda3
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue