mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
usb-storage: Fix scsi-sd failure "Invalid field in cdb" for USB adapter JMicron
commit 9fa62b1a31 upstream.
The patch extends the family of SATA-to-USB JMicron adapters that need
FUA to be disabled and applies the same policy for uas driver.
See details in http://unix.stackexchange.com/questions/237204/
Signed-off-by: Dmitry Katsubo <dmitry.katsubo@gmail.com>
Tested-by: Dmitry Katsubo <dmitry.katsubo@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bbe2ca0d54
commit
a7572562ef
@@ -796,6 +796,10 @@ static int uas_slave_configure(struct scsi_device *sdev)
|
|||||||
if (devinfo->flags & US_FL_NO_REPORT_OPCODES)
|
if (devinfo->flags & US_FL_NO_REPORT_OPCODES)
|
||||||
sdev->no_report_opcodes = 1;
|
sdev->no_report_opcodes = 1;
|
||||||
|
|
||||||
|
/* A few buggy USB-ATA bridges don't understand FUA */
|
||||||
|
if (devinfo->flags & US_FL_BROKEN_FUA)
|
||||||
|
sdev->broken_fua = 1;
|
||||||
|
|
||||||
scsi_change_queue_depth(sdev, devinfo->qdepth - 2);
|
scsi_change_queue_depth(sdev, devinfo->qdepth - 2);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1987,7 +1987,7 @@ UNUSUAL_DEV( 0x14cd, 0x6600, 0x0201, 0x0201,
|
|||||||
US_FL_IGNORE_RESIDUE ),
|
US_FL_IGNORE_RESIDUE ),
|
||||||
|
|
||||||
/* Reported by Michael Büsch <m@bues.ch> */
|
/* Reported by Michael Büsch <m@bues.ch> */
|
||||||
UNUSUAL_DEV( 0x152d, 0x0567, 0x0114, 0x0114,
|
UNUSUAL_DEV( 0x152d, 0x0567, 0x0114, 0x0116,
|
||||||
"JMicron",
|
"JMicron",
|
||||||
"USB to ATA/ATAPI Bridge",
|
"USB to ATA/ATAPI Bridge",
|
||||||
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
|
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ UNUSUAL_DEV(0x152d, 0x0567, 0x0000, 0x9999,
|
|||||||
"JMicron",
|
"JMicron",
|
||||||
"JMS567",
|
"JMS567",
|
||||||
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
|
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
|
||||||
US_FL_NO_REPORT_OPCODES),
|
US_FL_BROKEN_FUA | US_FL_NO_REPORT_OPCODES),
|
||||||
|
|
||||||
/* Reported-by: Hans de Goede <hdegoede@redhat.com> */
|
/* Reported-by: Hans de Goede <hdegoede@redhat.com> */
|
||||||
UNUSUAL_DEV(0x2109, 0x0711, 0x0000, 0x9999,
|
UNUSUAL_DEV(0x2109, 0x0711, 0x0000, 0x9999,
|
||||||
|
|||||||
Reference in New Issue
Block a user