From patchwork Wed Aug 31 07:13:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "zhongling0719@126.com" X-Patchwork-Id: 601768 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66C98ECAAD3 for ; Wed, 31 Aug 2022 07:18:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbiHaHSJ (ORCPT ); Wed, 31 Aug 2022 03:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbiHaHR3 (ORCPT ); Wed, 31 Aug 2022 03:17:29 -0400 Received: from mail-m965.mail.126.com (mail-m965.mail.126.com [123.126.96.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 91FBF832C1 for ; Wed, 31 Aug 2022 00:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=/EzJWlbHt3cXKTs1jo P/BBThSk0aPPfVBtSgysIDDCY=; b=BRljOxtnUmMcJfQePDSLqJOC77ZU1PHtbn rWDFOn4fvUY5MxHR3wiJ/oPsslxAja+5U66rnjfzWbz5444oTcPGGyBi7oPncZ9E pRTwSfrqoWjWReFBFtYRZ+ZcpZFUMHPwgb2MDah2UrHe5tbU2ZkwbTqo4/VR59x/ CLBWxU1R4= Received: from localhost.localdomain.localdomain (unknown [112.64.161.44]) by smtp10 (Coremail) with SMTP id NuRpCgDXO+wRCg9juFz+AQ--.16257S2; Wed, 31 Aug 2022 15:13:23 +0800 (CST) From: zenghongling To: stern@rowland.harvard.edu, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, zhongling0719@126.com Subject: [PATCH] uas: add no-uas quirk for Thinkplus and Hiksemi usb-storage Date: Wed, 31 Aug 2022 15:13:51 +0800 Message-Id: <1661930031-21908-1-git-send-email-zhongling0719@126.com> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: NuRpCgDXO+wRCg9juFz+AQ--.16257S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Zr48JrW7WF17urWfWFyfJFb_yoW8Xw1fpF n8ZrZ5C397W3WavrnI9w4UCr93Ja1vkF1kGay7Kw15Zw1rAayUXrnxJr48Kry7Cr43Xr40 vF4qvFWxKrWUG3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pi3Ef5UUUUU= X-Originating-IP: [112.64.161.44] X-CM-SenderInfo: x2kr0wpolqwiqxrzqiyswou0bp/1tbiLRNu0FpD-YSAPwAAsf Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The UAS mode of Thinkplus and Hiksemi is reported to fail to work on several platforms with the following error message: [ 39.702439] xhci_hcd 0000:0c:00.3: ERROR Transfer event for disabled endpoint or incorrect stream ring [ 39.702442] xhci_hcd 0000:0c:00.3: @000000026c61f810 00000000 00000000 1b000000 05038000 And when running iozone will disconnect from the USB controller, then after re-connecting the device will be offlined and not working at all. Signed-off-by: zenghongling --- drivers/usb/storage/unusual_uas.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/storage/unusual_uas.h b/drivers/usb/storage/unusual_uas.h index cdff7dc..bb0d31d 100644 --- a/drivers/usb/storage/unusual_uas.h +++ b/drivers/usb/storage/unusual_uas.h @@ -215,6 +215,24 @@ UNUSUAL_DEV(0x4971, 0x1012, 0x0000, 0x9999, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_IGNORE_UAS), +UNUSUAL_DEV(0x17ef, 0x3899, 0x0000, 0x9999, + "Thinkplus", + "External HDD", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_IGNORE_UAS), + +UNUSUAL_DEV(0x090c, 0x2000, 0x0000, 0x9999, + "Hiksemi", + "External HDD", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_IGNORE_UAS), + +UNUSUAL_DEV(0x0bda, 0x9210, 0x0000, 0x9999, + "Hiksemi", + "External HDD", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_IGNORE_UAS), + /* Reported-by: Richard Henderson */ UNUSUAL_DEV(0x4971, 0x8017, 0x0000, 0x9999, "SimpleTech",