Skip to content

Commit 86d92f5

Browse files
Jim Lingregkh
authored andcommitted
usb: storage: Add quirk for Samsung Fit flash
Current driver has 240 (USB2.0) and 2048 (USB3.0) as max_sectors, e.g., /sys/bus/scsi/devices/0:0:0:0/max_sectors If data access times out, driver error handling will issue a port reset. Sometimes Samsung Fit (090C:1000) flash disk will not respond to later Set Address or Get Descriptor command. Adding this quirk to limit max_sectors to 64 sectors to avoid issue occurring. Signed-off-by: Jim Lin <[email protected]> Acked-by: Alan Stern <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b96ed52 commit 86d92f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/usb/storage/unusual_devs.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,12 @@ UNUSUAL_DEV( 0x090a, 0x1200, 0x0000, 0x9999,
12581258
USB_SC_RBC, USB_PR_BULK, NULL,
12591259
0 ),
12601260

1261+
UNUSUAL_DEV(0x090c, 0x1000, 0x1100, 0x1100,
1262+
"Samsung",
1263+
"Flash Drive FIT",
1264+
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
1265+
US_FL_MAX_SECTORS_64),
1266+
12611267
/* aeb */
12621268
UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff,
12631269
"Feiya",

0 commit comments

Comments
 (0)