patch "USB: Add quirk to support DJI CineSSD" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
USB: Add quirk to support DJI CineSSD
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
f45681f9becaa65111ed0a691ccf080a0cd5feb8Mon Sep 17 00:00:00 2001
From: Tim Anderson <[email protected]>
Date: Thu, 9 Aug 2018 14:55:34 -0700
Subject: USB: Add quirk to support DJI CineSSD
This device does not correctly handle the LPM operations.
Also, the device cannot handle ATA pass-through commands and locks up when attempted while running in super speed.
This patch adds the equivalent quirk logic as found in uas.
--- drivers/usb/core/quirks.c | 3 +++ drivers/usb/storage/scsiglue.c | 9 +++++++++ drivers/usb/storage/unusual_devs.h | 7 +++++++ 3 files changed, 19 insertions(+)
drivers/usb/core/quirks.c +3 -0
@@ -410,6 +410,9 @@ static const struct usb_device_id usb_quirk_list[] = { { USB_DEVICE(0x2040, 0x7200), .driver_info = USB_QUIRK_CONFIG_INTF_STRINGS }, + /* DJI CineSSD */ + { USB_DEVICE(0x2ca3, 0x0031), .driver_info = USB_QUIRK_NO_LPM }, + /* INTEL VALUE SSD */ { USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME },
drivers/usb/storage/scsiglue.c +9 -0
@@ -376,6 +376,15 @@ static int queuecommand_lck(struct scsi_cmnd *srb,return 0 ; } +if ((us->fflags &US_FL_NO_ATA_1X ) && + (srb->cmnd[0 ] ==ATA_12 || srb->cmnd[0 ] ==ATA_16 )) { +memcpy (srb->sense_buffer, usb_stor_sense_invalidCDB, +sizeof (usb_stor_sense_invalidCDB)); + srb->result =SAM_STAT_CHECK_CONDITION ; +done (srb); +return 0 ; + } +/* enqueue the command and wake up the control thread */ srb->scsi_done = done; us->srb = srb;
drivers/usb/storage/unusual_devs.h +7 -0
@@ -2288,6 +2288,13 @@ UNUSUAL_DEV( 0x2735, 0x100b, 0x0000, 0x9999, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_GO_SLOW ), +/* Reported-by: Tim Anderson <[email protected]> */ +UNUSUAL_DEV (0x2ca3 ,0x0031 ,0x0000 ,0x9999 , +"DJI" , +"CineSSD" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , + US_FL_NO_ATA_1X), +/* * Reported by Frederic Marchal <[email protected]> * Mio Moov 330
Signature · 1 line
2.18.0