GNU Linux-libre 4.19.264-gnu1
[releases.git] / drivers / usb / storage / unusual_uas.h
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Driver for USB Attached SCSI devices - Unusual Devices File
4  *
5  *   (c) 2013 Hans de Goede <hdegoede@redhat.com>
6  *
7  * Based on the same file for the usb-storage driver, which is:
8  *   (c) 2000-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
9  *   (c) 2000 Adam J. Richter (adam@yggdrasil.com), Yggdrasil Computing, Inc.
10  */
11
12 /*
13  * IMPORTANT NOTE: This file must be included in another file which defines
14  * a UNUSUAL_DEV macro before this file is included.
15  */
16
17 /*
18  * If you edit this file, please try to keep it sorted first by VendorID,
19  * then by ProductID.
20  *
21  * If you want to add an entry for this file, be sure to include the
22  * following information:
23  *      - a patch that adds the entry for your device, including your
24  *        email address right above the entry (plus maybe a brief
25  *        explanation of the reason for the entry),
26  *      - lsusb -v output for the device
27  * Send your submission to Hans de Goede <hdegoede@redhat.com>
28  * and don't forget to CC: the USB development list <linux-usb@vger.kernel.org>
29  */
30
31 /* Reported-by: Till Dörges <doerges@pre-sense.de> */
32 UNUSUAL_DEV(0x054c, 0x087d, 0x0000, 0x9999,
33                 "Sony",
34                 "PSZ-HA*",
35                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
36                 US_FL_NO_REPORT_OPCODES),
37
38 /*
39  *  Initially Reported-by: Julian Groß <julian.g@posteo.de>
40  *  Further reports David C. Partridge <david.partridge@perdrix.co.uk>
41  */
42 UNUSUAL_DEV(0x059f, 0x105f, 0x0000, 0x9999,
43                 "LaCie",
44                 "2Big Quadra USB3",
45                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
46                 US_FL_NO_REPORT_OPCODES | US_FL_NO_SAME),
47
48 /* Reported-by: Julian Sikorski <belegdol@gmail.com> */
49 UNUSUAL_DEV(0x059f, 0x1061, 0x0000, 0x9999,
50                 "LaCie",
51                 "Rugged USB3-FW",
52                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
53                 US_FL_NO_REPORT_OPCODES | US_FL_NO_SAME),
54
55 /* Reported-by: Hongling Zeng <zenghongling@kylinos.cn> */
56 UNUSUAL_DEV(0x090c, 0x2000, 0x0000, 0x9999,
57                 "Hiksemi",
58                 "External HDD",
59                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
60                 US_FL_IGNORE_UAS),
61
62 /*
63  * Apricorn USB3 dongle sometimes returns "USBSUSBSUSBS" in response to SCSI
64  * commands in UAS mode.  Observed with the 1.28 firmware; are there others?
65  */
66 UNUSUAL_DEV(0x0984, 0x0301, 0x0128, 0x0128,
67                 "Apricorn",
68                 "",
69                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
70                 US_FL_IGNORE_UAS),
71
72 /* Reported-by: Tom Hu <huxiaoying@kylinos.cn> */
73 UNUSUAL_DEV(0x0b05, 0x1932, 0x0000, 0x9999,
74                 "ASUS",
75                 "External HDD",
76                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
77                 US_FL_IGNORE_UAS),
78
79 /* Reported-by: David Webb <djw@noc.ac.uk> */
80 UNUSUAL_DEV(0x0bc2, 0x331a, 0x0000, 0x9999,
81                 "Seagate",
82                 "Expansion Desk",
83                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
84                 US_FL_NO_REPORT_LUNS),
85
86 /* Reported-by: Hongling Zeng <zenghongling@kylinos.cn> */
87 UNUSUAL_DEV(0x0bda, 0x9210, 0x0000, 0x9999,
88                 "Hiksemi",
89                 "External HDD",
90                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
91                 US_FL_IGNORE_UAS),
92
93 /* Reported-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> */
94 UNUSUAL_DEV(0x13fd, 0x3940, 0x0000, 0x9999,
95                 "Initio Corporation",
96                 "INIC-3069",
97                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
98                 US_FL_NO_ATA_1X | US_FL_IGNORE_RESIDUE),
99
100 /* Reported-by: Tom Arild Naess <tanaess@gmail.com> */
101 UNUSUAL_DEV(0x152d, 0x0539, 0x0000, 0x9999,
102                 "JMicron",
103                 "JMS539",
104                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
105                 US_FL_NO_REPORT_OPCODES),
106
107 /* Reported-by: Claudio Bizzarri <claudio.bizzarri@gmail.com> */
108 UNUSUAL_DEV(0x152d, 0x0567, 0x0000, 0x9999,
109                 "JMicron",
110                 "JMS567",
111                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
112                 US_FL_BROKEN_FUA | US_FL_NO_REPORT_OPCODES),
113
114 /* Reported-by: David Kozub <zub@linux.fjfi.cvut.cz> */
115 UNUSUAL_DEV(0x152d, 0x0578, 0x0000, 0x9999,
116                 "JMicron",
117                 "JMS567",
118                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
119                 US_FL_BROKEN_FUA),
120
121 /* Reported-by: Thinh Nguyen <thinhn@synopsys.com> */
122 UNUSUAL_DEV(0x154b, 0xf00b, 0x0000, 0x9999,
123                 "PNY",
124                 "Pro Elite SSD",
125                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
126                 US_FL_NO_ATA_1X),
127
128 /* Reported-by: Thinh Nguyen <thinhn@synopsys.com> */
129 UNUSUAL_DEV(0x154b, 0xf00d, 0x0000, 0x9999,
130                 "PNY",
131                 "Pro Elite SSD",
132                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
133                 US_FL_NO_ATA_1X),
134
135 /* Reported-by: Hongling Zeng <zenghongling@kylinos.cn> */
136 UNUSUAL_DEV(0x17ef, 0x3899, 0x0000, 0x9999,
137                 "Thinkplus",
138                 "External HDD",
139                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
140                 US_FL_IGNORE_UAS),
141
142 /* Reported-by: Hans de Goede <hdegoede@redhat.com> */
143 UNUSUAL_DEV(0x2109, 0x0711, 0x0000, 0x9999,
144                 "VIA",
145                 "VL711",
146                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
147                 US_FL_NO_ATA_1X),
148
149 /* Reported-by: Icenowy Zheng <icenowy@aosc.io> */
150 UNUSUAL_DEV(0x2537, 0x1068, 0x0000, 0x9999,
151                 "Norelsys",
152                 "NS1068X",
153                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
154                 US_FL_IGNORE_UAS),
155
156 /*
157  * Initially Reported-by: Takeo Nakayama <javhera@gmx.com>
158  * UAS Ignore Reported by Steven Ellis <sellis@redhat.com>
159  */
160 UNUSUAL_DEV(0x357d, 0x7788, 0x0000, 0x9999,
161                 "JMicron",
162                 "JMS566",
163                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
164                 US_FL_NO_REPORT_OPCODES | US_FL_IGNORE_UAS),
165
166 /* Reported-by: Hans de Goede <hdegoede@redhat.com> */
167 UNUSUAL_DEV(0x4971, 0x1012, 0x0000, 0x9999,
168                 "Hitachi",
169                 "External HDD",
170                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
171                 US_FL_IGNORE_UAS),
172
173 /* Reported-by: Richard Henderson <rth@redhat.com> */
174 UNUSUAL_DEV(0x4971, 0x8017, 0x0000, 0x9999,
175                 "SimpleTech",
176                 "External HDD",
177                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
178                 US_FL_NO_REPORT_OPCODES),
179
180 /* "G-DRIVE" external HDD hangs on write without these.
181  * Patch submitted by Alexander Kappner <agk@godking.net>
182  */
183 UNUSUAL_DEV(0x4971, 0x8024, 0x0000, 0x9999,
184                 "SimpleTech",
185                 "External HDD",
186                 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
187                 US_FL_ALWAYS_SYNC),