Commit afff07e61a5243e14ee3f0a272a0380cd744a8a3
Committed by
Greg Kroah-Hartman
1 parent
0b84704a2d
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
usb-storage: Add 090c:1000 to unusal-devs
This device gives a bogus answer to get_capacity(16): [ 8628.278614] scsi 8:0:0:0: Direct-Access USB 2.0 USB Flash Drive 1100 PQ: 0 ANSI: 4 [ 8628.279452] sd 8:0:0:0: Attached scsi generic sg4 type 0 [ 8628.280338] sd 8:0:0:0: [sdd] 35747322042253313 512-byte logical blocks: (18.3 EB/15.8 EiB) So set the quirk flag to avoid using get_capacity(16) with it: [11731.386014] usb-storage 2-1.6:1.0: Quirks match for vid 090c pid 1000: 80000 [11731.386075] scsi9 : usb-storage 2-1.6:1.0 [11731.386172] usbcore: registered new interface driver usb-storage [11731.386175] USB Mass Storage support registered. [11732.387394] scsi 9:0:0:0: Direct-Access USB 2.0 USB Flash Drive 1100 PQ: 0 ANSI: 4 [11732.388462] sd 9:0:0:0: Attached scsi generic sg3 type 0 [11732.389432] sd 9:0:0:0: [sdc] 7975296 512-byte logical blocks: (4.08 GB/3.80 GiB) Which makes the capacity look a lot more sane :) Signed-off-by: Hans de Goede <hdegoede@redhat.com> Tested-by: Simon Raffeiner <sturmflut@lieberbiber.de> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff
drivers/usb/storage/unusual_devs.h
... | ... | @@ -1107,6 +1107,13 @@ |
1107 | 1107 | USB_SC_RBC, USB_PR_BULK, NULL, |
1108 | 1108 | 0 ), |
1109 | 1109 | |
1110 | +/* Feiya QDI U2 DISK, reported by Hans de Goede <hdegoede@redhat.com> */ | |
1111 | +UNUSUAL_DEV( 0x090c, 0x1000, 0x0000, 0xffff, | |
1112 | + "Feiya", | |
1113 | + "QDI U2 DISK", | |
1114 | + USB_SC_DEVICE, USB_PR_DEVICE, NULL, | |
1115 | + US_FL_NO_READ_CAPACITY_16 ), | |
1116 | + | |
1110 | 1117 | /* aeb */ |
1111 | 1118 | UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff, |
1112 | 1119 | "Feiya", |