Dash:
[t2-trunk.git] / package / base / linux / uas-seagate.patch
bloba53ceb58acf5caef29a04cf02dc22bef828d38c4
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/*/linux/uas-seagate.patch
5 # Copyright (C) 2021 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Revert 7fee72d5e8f1 "uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices"
18 and 92335ad9e895 "uas: Remove US_FL_NO_ATA_1X unusual device entries for Seagate devices"
19 as my 2015 Seagate Seven already has working ATA_1x e.g. for SMART and I
20 would expect many more modern drives, too.
22 Signed-off-by: René Rebe <rene@exactcode.com>
24 --- linux-5.11/drivers/usb/storage/uas-detect.h.backup 2021-03-05 11:36:00.517423726 +0100
25 +++ linux-5.11/drivers/usb/storage/uas-detect.h 2021-03-05 11:36:16.373424544 +0100
26 @@ -113,8 +113,4 @@
29 - /* All Seagate disk enclosures have broken ATA pass-through support */
30 - if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bc2)
31 - flags |= US_FL_NO_ATA_1X;
33 usb_stor_adjust_quirks(udev, &flags);
35 --- linux-5.11/drivers/usb/storage/unusual_uas.h
36 +++ linux-5.11/drivers/usb/storage/unusual_uas.h
37 @@ -38,6 +38,20 @@
38 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
39 US_FL_IGNORE_UAS),
41 +/* https://bugzilla.kernel.org/show_bug.cgi?id=79511 */
42 +UNUSUAL_DEV(0x0bc2, 0x2312, 0x0000, 0x9999,
43 + "Seagate",
44 + "Expansion Desk",
45 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
46 + US_FL_NO_ATA_1X),
48 +/* https://bbs.archlinux.org/viewtopic.php?id=183190 */
49 +UNUSUAL_DEV(0x0bc2, 0x3312, 0x0000, 0x9999,
50 + "Seagate",
51 + "Expansion Desk",
52 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
53 + US_FL_NO_ATA_1X),
55 /* Reported-by: David Webb <djw@noc.ac.uk> */
56 UNUSUAL_DEV(0x0bc2, 0x331a, 0x0000, 0x9999,
57 "Seagate",
58 @@ -45,6 +59,83 @@
59 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
60 US_FL_NO_REPORT_LUNS),
62 +/* Reported-by: Hans de Goede <hdegoede@redhat.com> */
63 +UNUSUAL_DEV(0x0bc2, 0x3320, 0x0000, 0x9999,
64 + "Seagate",
65 + "Expansion Desk",
66 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
67 + US_FL_NO_ATA_1X),
69 +/* Reported-by: Bogdan Mihalcea <bogdan.mihalcea@infim.ro> */
70 +UNUSUAL_DEV(0x0bc2, 0xa003, 0x0000, 0x9999,
71 + "Seagate",
72 + "Backup Plus",
73 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
74 + US_FL_NO_ATA_1X),
76 +/* Reported-by: Marcin Zajączkowski <mszpak@wp.pl> */
77 +UNUSUAL_DEV(0x0bc2, 0xa013, 0x0000, 0x9999,
78 + "Seagate",
79 + "Backup Plus",
80 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
81 + US_FL_NO_ATA_1X),
83 +/* Reported-by: Hans de Goede <hdegoede@redhat.com> */
84 +UNUSUAL_DEV(0x0bc2, 0xa0a4, 0x0000, 0x9999,
85 + "Seagate",
86 + "Backup Plus Desk",
87 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
88 + US_FL_NO_ATA_1X),
90 +/* https://bbs.archlinux.org/viewtopic.php?id=183190 */
91 +UNUSUAL_DEV(0x0bc2, 0xab20, 0x0000, 0x9999,
92 + "Seagate",
93 + "Backup+ BK",
94 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
95 + US_FL_NO_ATA_1X),
97 +/* Reported-by: Wido <wido.gg@gmail.com> */
98 +UNUSUAL_DEV(0x0bc2, 0xab24, 0x0000, 0x9999,
99 + "Seagate",
100 + "BUP Slim BK",
101 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
102 + US_FL_NO_ATA_1X),
104 +/* Reported-by: https://www.smartmontools.org/wiki/Supported_USB-Devices */
105 +UNUSUAL_DEV(0x0bc2, 0xab25, 0x0000, 0x9999,
106 + "Seagate",
107 + "BUP Slim SL",
108 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
109 + US_FL_NO_ATA_1X),
111 +/* Reported-by: Andrey Astafyev <dev@246060.ru> */
112 +UNUSUAL_DEV(0x0bc2, 0xab30, 0x0000, 0x9999,
113 + "Seagate",
114 + "BUP BK",
115 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
116 + US_FL_NO_ATA_1X),
118 +/* Reported-by: https://www.smartmontools.org/wiki/Supported_USB-Devices */
119 +UNUSUAL_DEV(0x0bc2, 0xab38, 0x0000, 0x9999,
120 + "Seagate",
121 + "Backup+ BK",
122 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
123 + US_FL_NO_ATA_1X),
125 +/* https://bbs.archlinux.org/viewtopic.php?id=183190 */
126 +UNUSUAL_DEV(0x0bc2, 0xab21, 0x0000, 0x9999,
127 + "Seagate",
128 + "Backup+ BK",
129 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
130 + US_FL_NO_ATA_1X),
132 +/* Reported-by: G. Richard Bellamy <rbellamy@pteradigm.com> */
133 +UNUSUAL_DEV(0x0bc2, 0xab2a, 0x0000, 0x9999,
134 + "Seagate",
135 + "BUP Fast HDD",
136 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
137 + US_FL_NO_ATA_1X),
139 /* Reported-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> */
140 UNUSUAL_DEV(0x13fd, 0x3940, 0x0000, 0x9999,
141 "Initio Corporation",