Skip to content

Commit 772685c

Browse files
tatokisgregkh
authored andcommitted
usb-storage: Add quirk for incorrect WP on Kingston DT Ultimate 3.0 G3
This flash drive reports write protect during the first mode sense. In the past this was not an issue as the kernel called revalidate twice, thus asking the device for its write protect status twice, with write protect being disabled in the second mode sense. However, since commit 1e02939 ("scsi: sd: Reorganize DIF/DIX code to avoid calling revalidate twice") that is no longer the case, thus the device shows up read only. [490891.289495] sd 12:0:0:0: [sdl] Write Protect is on [490891.289497] sd 12:0:0:0: [sdl] Mode Sense: 2b 00 80 08 This does not appear to be a timing issue, as enabling the usbcore quirk USB_QUIRK_DELAY_INIT has no effect on write protect. Fixes: 1e02939 ("scsi: sd: Reorganize DIF/DIX code to avoid calling revalidate twice") Cc: stable <stable@kernel.org> Signed-off-by: Tasos Sahanidis <tasos@tasossah.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://lore.kernel.org/r/20231207134441.298131-1-tasos@tasossah.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c994cb5 commit 772685c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/usb/storage/unusual_devs.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,17 @@ UNUSUAL_DEV( 0x090c, 0x6000, 0x0100, 0x0100,
13051305
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
13061306
US_FL_INITIAL_READ10 ),
13071307

1308+
/*
1309+
* Patch by Tasos Sahanidis <tasos@tasossah.com>
1310+
* This flash drive always shows up with write protect enabled
1311+
* during the first mode sense.
1312+
*/
1313+
UNUSUAL_DEV(0x0951, 0x1697, 0x0100, 0x0100,
1314+
"Kingston",
1315+
"DT Ultimate G3",
1316+
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
1317+
US_FL_NO_WP_DETECT),
1318+
13081319
/*
13091320
* This Pentax still camera is not conformant
13101321
* to the USB storage specification: -

0 commit comments

Comments
 (0)