Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7181614imu; Thu, 27 Dec 2018 14:07:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN4nteEgzKTdCipu9fc1kx8fMVfr6st8rDILWv9qeSZBKuUhH/p1lEYFAu/9kcJRg5j/ZRZ3 X-Received: by 2002:a63:9306:: with SMTP id b6mr23197096pge.36.1545948447131; Thu, 27 Dec 2018 14:07:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545948447; cv=none; d=google.com; s=arc-20160816; b=JnFdAEGo7IHEnZC5yfYfCWoI/Qev9IXrMC/LDy7Kc6FFqcs0uE23tNkrLKHra1MMOy rpfeGV3dvdd+U6QqK2U16YOt+7he/UuH9Rbb0Vbp2ehG36+5OTgb9cevBRJedeIPiPut U4KII+j8WtkiVmR2rxSjm+kEj4QIJEUIiUPPsrPw/LoMPompBUxWRv2i7jwj/S5gmzp0 Y1m/jHWX8sYwdrKwMn5vP3PE6lHs6gdZtjkiT66rr1kVSPSQcvr7UgURkmBJEXZR9VWv 9LKnNo+/LdGgjQ3kfqx98/V7UjFMPWV0DOhMzmBQKqm769Fb4BZGD+4SSZUp5Mt8gfep EfQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=gMJohtuMbghKqKH8J16nrzd+AdkO/aaB9oBbicxAgyE=; b=wgT5WGivPc5jByk58GR+sTeLLBpU+tIMCkPyLzufH/PKUOwc9QpXPWiESVwOr5bRgZ L6V7ddFczARUr2/UBVJ/txhTf4R09fEx9p8CJnx3f3NJOItF64AE3CzurgYI/YyX5d6J hQv0W/Bz6ONwSjzLCk9AHD9zjuXYBQbm+6gJC1zmz2+DCAzUVHRwlYt3qJPPDTyDhFHz y0T9hJ+7leMS5F0+X2ARB3lXFofmSbhPyk0Xw4s6SErOx3Ax4Ls9Tk7k/Njv+Oo1au2y O/WjlM11MFWyh3uF/IwUnJJyPCdOGlKwUvlSxIzoFT3xCC7BqKDp0AeXvHN+lA/GsZRL zXRQ== 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 n78si36633693pfi.235.2018.12.27.14.07.11; Thu, 27 Dec 2018 14:07:27 -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 S1727903AbeL0Oin (ORCPT + 99 others); Thu, 27 Dec 2018 09:38:43 -0500 Received: from hermes.aosc.io ([199.195.250.187]:59250 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726764AbeL0Oim (ORCPT ); Thu, 27 Dec 2018 09:38:42 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id F3EDE15E503; Thu, 27 Dec 2018 14:38:38 +0000 (UTC) Message-ID: <12c8418f525591cd8aad011dedd96a7c7af9ca99.camel@aosc.io> Subject: Re: [PATCH 2/2] USB: storage: add quirk for SMI SM3350 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: stable@vger.kernel.org Date: Thu, 27 Dec 2018 22:38:33 +0800 In-Reply-To: <20181227143437.17151-3-icenowy@aosc.io> References: <20181227143437.17151-1-icenowy@aosc.io> <20181227143437.17151-3-icenowy@aosc.io> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2018-12-27四的 22:34 +0800,Icenowy Zheng写道: > 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 > --- I forgot to: Cc: stable@vger.kernel.org > 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