Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7289202imu; Thu, 27 Dec 2018 16:56:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN77DrZsxgDUhjV5gpxnGQVWSqTQb9NDZauwThBnayv4HDegoaAmODyg1L+GNzwwt5V/y2Z5 X-Received: by 2002:a63:d818:: with SMTP id b24mr24094379pgh.174.1545958606109; Thu, 27 Dec 2018 16:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545958606; cv=none; d=google.com; s=arc-20160816; b=SjSzWqvc5M4MVGmyrCf8SsDQ6TR4KO8GmtwPtfs7wWyWGhck3NJR3IURXI9VTkQgrF /82LG2mM7GS0ZpkEowzCrI4qwCn7Iqb8IwvPeTrBEpx+Hk5S97wXPRVo6xTewVRQd4aL u0D6iObUNMQyczyxl7obBZjwnBorwFuINWhVDMePfQ0Z8loSm0CtZ9RDJbkfU/tZlKnV L5yAADSlwV+hy+O/CVk55ypmhnAhkQjtXsdXMuGmCXPLpHxWOfiN/6R/JWkVdm4AemLE P18wY5pZXhu8kSlzmpp+FpWlNKHUf6LlV0XxIiSQPO3AIPQdymEn/JVg571heBPS2vVC bQVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=tc0ClzKz3WHjBO2WHjRG29pYl21HLGVN0q8MhHbq0yM=; b=CkFO+IKcVFZNsSLMODgwWv2SLPPwfhtmKLxGk7E2XakyZfgwTwotfFXR1mIU/N+Ryx SKkZ5YK8AuDdwyd3KuXil9jYo+sCpZbYEv4WlZzvoKUalA5z4+6HOJFa/fEb/zr8y4YX uu+6s5Z+nAWjKf8MiHo1LpqoSt7r7O5SkaAKHrTTY52j3g/jgqFeTe2aERYYwBMLAeiL oTTpxOQSLgAW9WMN3eIvrOr7YnwuXvLJSdCKOcGv5SkCmdvowU98VOC01ANSA599h/Up Fw06YXpvLqV5QM70upaPZMuD0TfOQ36CdTANThLH4uej1zoikjec1nEpD3uApTK5DR9K hqlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v190si37453537pfv.8.2018.12.27.16.56.31; Thu, 27 Dec 2018 16:56:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731075AbeL0OfX (ORCPT + 99 others); Thu, 27 Dec 2018 09:35:23 -0500 Received: from hermes.aosc.io ([199.195.250.187]:59119 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726774AbeL0OfX (ORCPT ); Thu, 27 Dec 2018 09:35:23 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 4D37515E505; Thu, 27 Dec 2018 14:35:20 +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 2/2] USB: storage: add quirk for SMI SM3350 Date: Thu, 27 Dec 2018 22:34:37 +0800 Message-Id: <20181227143437.17151-3-icenowy@aosc.io> In-Reply-To: <20181227143437.17151-1-icenowy@aosc.io> References: <20181227143437.17151-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SMI SM3350 USB-UFS bridge controller cannot handle long sense request correctly and will make the chip refuse to do read/write when requested long sense. Add a bad sense quirk for it. Signed-off-by: Icenowy Zheng --- drivers/usb/storage/unusual_devs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index f7f83b21dc74..ea0d27a94afe 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -1265,6 +1265,18 @@ UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_FIX_CAPACITY ), +/* + * Reported by Icenowy Zheng + * The SMI SM3350 USB-UFS bridge controller will enter a wrong state + * that do not process read/write command if a long sense is requested, + * so force to use 18-byte sense. + */ +UNUSUAL_DEV( 0x090c, 0x3350, 0x0000, 0xffff, + "SMI", + "SM3350 UFS-to-USB-Mass-Storage bridge", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_BAD_SENSE ), + /* * Reported by Paul Hartman * This card reader returns "Illegal Request, Logical Block Address -- 2.18.1