diff options
author | Hans de Goede <hdegoede@redhat.com> | 2017-11-14 13:27:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-28 09:17:49 -0500 |
commit | 7fee72d5e8f1e7b8d8212e28291b1a0243ecf2f1 (patch) | |
tree | d1ea8432dbdb6898cc212683add82247ac5f6402 | |
parent | e43a12f1793ae1fe006e26fe9327a8840a92233c (diff) |
uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices
We've been adding this as a quirk on a per device basis hoping that
newer disk enclosures would do better, but that has not happened,
so simply apply this quirk to all Seagate devices.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/storage/uas-detect.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/storage/uas-detect.h b/drivers/usb/storage/uas-detect.h index 1fcd758a961f..3734a25e09e5 100644 --- a/drivers/usb/storage/uas-detect.h +++ b/drivers/usb/storage/uas-detect.h | |||
@@ -112,6 +112,10 @@ static int uas_use_uas_driver(struct usb_interface *intf, | |||
112 | } | 112 | } |
113 | } | 113 | } |
114 | 114 | ||
115 | /* All Seagate disk enclosures have broken ATA pass-through support */ | ||
116 | if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bc2) | ||
117 | flags |= US_FL_NO_ATA_1X; | ||
118 | |||
115 | usb_stor_adjust_quirks(udev, &flags); | 119 | usb_stor_adjust_quirks(udev, &flags); |
116 | 120 | ||
117 | if (flags & US_FL_IGNORE_UAS) { | 121 | if (flags & US_FL_IGNORE_UAS) { |