From patchwork Thu Jan 3 03:26:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10746921 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF33213B5 for ; Thu, 3 Jan 2019 03:26:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6D00287DC for ; Thu, 3 Jan 2019 03:26:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7ACA2886A; Thu, 3 Jan 2019 03:26:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21E11287DC for ; Thu, 3 Jan 2019 03:26:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726243AbfACD0f (ORCPT ); Wed, 2 Jan 2019 22:26:35 -0500 Received: from hermes.aosc.io ([199.195.250.187]:54751 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbfACD0f (ORCPT ); Wed, 2 Jan 2019 22:26:35 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 47F4C15E6BB; Thu, 3 Jan 2019 03:26:30 +0000 (UTC) From: Icenowy Zheng To: Alan Stern , Greg Kroah-Hartman , linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org Cc: Icenowy Zheng Subject: [PATCH v2 0/2] USB Storage quirk for SMI SM3350 Date: Thu, 3 Jan 2019 11:26:16 +0800 Message-Id: <20190103032618.9237-1-icenowy@aosc.io> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SMI SM3350 UFS-USB bridge controller cannot handle REQUEST SENSE command with long sense (96-bytes) well, and will even trap the controller into a state that refuses to do read/write command. Currently Linux uncondintionally set US_FL_SANE_SENSE for devices claiming SPC3+, which makes simply add US_FL_BAD_SENSE for SM3350 fail (as it claims SPC4). Fix this conflicting quirk issue, and add the quirk for SM3350. Icenowy Zheng (2): USB: storage: don't insert sane sense for SPC3+ when bad sense specified USB: storage: add quirk for SMI SM3350 drivers/usb/storage/scsiglue.c | 8 ++++++-- drivers/usb/storage/unusual_devs.h | 12 ++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) Acked-by: Alan Stern