diff options
| author | Mark Knibbs <markk@clara.co.uk> | 2014-11-07 17:02:19 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-24 20:22:38 -0500 |
| commit | eab77694098469d80e1186fdda9f965045730a3e (patch) | |
| tree | 3056728c3547e9945dd7be8f53a5e738dfdadf6d /drivers/usb/storage | |
| parent | 782614b80edf97dad35fa93f9981883c3e117c29 (diff) | |
storage: Enable multi-target mode as vendor driver does for SCM eUSCSI bridge
usb_stor_euscsi_init() enables multi-target mode for SCM eUSB SCSI bridge
devices. The control message it sends has wLength = 1 and the byte sent is
0x01. While that works, the SCM Windows driver does it with wLength = 0. We
may as well match what the SCM driver does.
Signed-off-by: Mark Knibbs <markk@clara.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage')
| -rw-r--r-- | drivers/usb/storage/initializers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/storage/initializers.c b/drivers/usb/storage/initializers.c index 73f125e0cb58..31fa2e92065b 100644 --- a/drivers/usb/storage/initializers.c +++ b/drivers/usb/storage/initializers.c | |||
| @@ -49,10 +49,9 @@ int usb_stor_euscsi_init(struct us_data *us) | |||
| 49 | int result; | 49 | int result; |
| 50 | 50 | ||
| 51 | usb_stor_dbg(us, "Attempting to init eUSCSI bridge...\n"); | 51 | usb_stor_dbg(us, "Attempting to init eUSCSI bridge...\n"); |
| 52 | us->iobuf[0] = 0x1; | ||
| 53 | result = usb_stor_control_msg(us, us->send_ctrl_pipe, | 52 | result = usb_stor_control_msg(us, us->send_ctrl_pipe, |
| 54 | 0x0C, USB_RECIP_INTERFACE | USB_TYPE_VENDOR, | 53 | 0x0C, USB_RECIP_INTERFACE | USB_TYPE_VENDOR, |
| 55 | 0x01, 0x0, us->iobuf, 0x1, 5 * HZ); | 54 | 0x01, 0x0, NULL, 0x0, 5 * HZ); |
| 56 | usb_stor_dbg(us, "-- result is %d\n", result); | 55 | usb_stor_dbg(us, "-- result is %d\n", result); |
| 57 | 56 | ||
| 58 | return 0; | 57 | return 0; |
