Return-Path: Received: from mail-bn3nam01on0121.outbound.protection.outlook.com ([104.47.33.121]:35342 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932440AbeARVCO (ORCPT ); Thu, 18 Jan 2018 16:02:14 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Hans de Goede , Greg Kroah-Hartman , Sasha Levin Subject: [added to the 4.1 stable tree] uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices Date: Thu, 18 Jan 2018 21:00:23 +0000 Message-ID: <20180118205908.3220-111-alexander.levin@microsoft.com> References: <20180118205908.3220-1-alexander.levin@microsoft.com> In-Reply-To: <20180118205908.3220-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Hans de Goede This patch has been added to the stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 7fee72d5e8f1e7b8d8212e28291b1a0243ecf2f1 ] 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 Cc: stable Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/storage/uas-detect.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/storage/uas-detect.h b/drivers/usb/storage/uas-det= ect.h index a155cd02bce2..ecc83c405a8b 100644 --- a/drivers/usb/storage/uas-detect.h +++ b/drivers/usb/storage/uas-detect.h @@ -111,6 +111,10 @@ static int uas_use_uas_driver(struct usb_interface *in= tf, } } =20 + /* All Seagate disk enclosures have broken ATA pass-through support */ + if (le16_to_cpu(udev->descriptor.idVendor) =3D=3D 0x0bc2) + flags |=3D US_FL_NO_ATA_1X; + usb_stor_adjust_quirks(udev, &flags); =20 if (flags & US_FL_IGNORE_UAS) { --=20 2.11.0