1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/linux/uas-seagate.patch
5 # Copyright (C) 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
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
38 USB_SC_DEVICE, USB_PR_DEVICE, NULL,
41 +/* https://bugzilla.kernel.org/show_bug.cgi?id=79511 */
42 +UNUSUAL_DEV(0x0bc2, 0x2312, 0x0000, 0x9999,
45 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
48 +/* https://bbs.archlinux.org/viewtopic.php?id=183190 */
49 +UNUSUAL_DEV(0x0bc2, 0x3312, 0x0000, 0x9999,
52 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
55 /* Reported-by: David Webb <djw@noc.ac.uk> */
56 UNUSUAL_DEV(0x0bc2, 0x331a, 0x0000, 0x9999,
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,
66 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
69 +/* Reported-by: Bogdan Mihalcea <bogdan.mihalcea@infim.ro> */
70 +UNUSUAL_DEV(0x0bc2, 0xa003, 0x0000, 0x9999,
73 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
76 +/* Reported-by: Marcin Zajączkowski <mszpak@wp.pl> */
77 +UNUSUAL_DEV(0x0bc2, 0xa013, 0x0000, 0x9999,
80 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
83 +/* Reported-by: Hans de Goede <hdegoede@redhat.com> */
84 +UNUSUAL_DEV(0x0bc2, 0xa0a4, 0x0000, 0x9999,
87 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
90 +/* https://bbs.archlinux.org/viewtopic.php?id=183190 */
91 +UNUSUAL_DEV(0x0bc2, 0xab20, 0x0000, 0x9999,
94 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
97 +/* Reported-by: Wido <wido.gg@gmail.com> */
98 +UNUSUAL_DEV(0x0bc2, 0xab24, 0x0000, 0x9999,
101 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
104 +/* Reported-by: https://www.smartmontools.org/wiki/Supported_USB-Devices */
105 +UNUSUAL_DEV(0x0bc2, 0xab25, 0x0000, 0x9999,
108 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
111 +/* Reported-by: Andrey Astafyev <dev@246060.ru> */
112 +UNUSUAL_DEV(0x0bc2, 0xab30, 0x0000, 0x9999,
115 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
118 +/* Reported-by: https://www.smartmontools.org/wiki/Supported_USB-Devices */
119 +UNUSUAL_DEV(0x0bc2, 0xab38, 0x0000, 0x9999,
122 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
125 +/* https://bbs.archlinux.org/viewtopic.php?id=183190 */
126 +UNUSUAL_DEV(0x0bc2, 0xab21, 0x0000, 0x9999,
129 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
132 +/* Reported-by: G. Richard Bellamy <rbellamy@pteradigm.com> */
133 +UNUSUAL_DEV(0x0bc2, 0xab2a, 0x0000, 0x9999,
136 + USB_SC_DEVICE, USB_PR_DEVICE, NULL,
139 /* Reported-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> */
140 UNUSUAL_DEV(0x13fd, 0x3940, 0x0000, 0x9999,
141 "Initio Corporation",