Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5295876imu; Tue, 15 Jan 2019 15:04:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN6wUhCDTyVP6mB8cWxnQlW+VefMaCljYfmrGVrUb9ubJnnC/luPco6SpANhZ8UZMRPrZmsl X-Received: by 2002:a63:304:: with SMTP id 4mr5504541pgd.99.1547593469637; Tue, 15 Jan 2019 15:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547593469; cv=none; d=google.com; s=arc-20160816; b=GE+U8WX5QbVw7jGwKRR8dJRpeg+DeWNAIlzgIb6AEweXzbkqCndfE+G12aPkx/WXaj jJN+XXTm48C2sE6J+BEPlf+Uk/+qvNNAnfOcZxVoZA5Vr8+qxs1iuRflQvP8+GzrxLeg LrY0v6TwjwwtBQBIDkwPOXDWiR9Ycv/dzV7A6pn0O0QMs1T/M4KHtAKt1Xi6YyKw50j0 xE5QT1u3pO+KoQkxfII17x9A9Qh+0AkyyVpXvcBQNOuv1Ib+XD9qtzIyOAl/aJcVwopj pJO5kXhrb2Wh8cS9fU3WsjFHonoZZmB6EgvYeB5SMd+sHUx11fzg3yLidf6r4cO05zjh ju0w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=f1iwSC/cwIAglMpEZbcGMMHnW8HiSUNC4WuX8xBwMnc=; b=wobhRqg7eqT/SllWOermETWpcw+F+HxGmOroI7lj2HWkrIn4xmfSxlYdiiUjjAPTQQ nkFLd5RMN/iQrfDqVp+wKkm3VMfvmbmYijfUM0vUgC1K/M53zlRqUwSOpdc2W73lV4NZ ykXOclqq3NKZikM3le7h8QXirTAIr7F/dZ0m9rOle6XfeCp06+T7hIJjl13w4/Ze0HT/ 9csuANWmXhid5B6rTek5oeue+E9LYznj7lyxbyogLv5oG31p8CaFDn8I0U8t2rWfT24B 0YHKjZu/Mqin2Cmuy63BAzOPzK1mCG+PejlIy/eaVPSa1nu+GNFvBGBFn0OG9IK1pOnE YrmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dkmg+raw; 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 d23si4399498pgm.559.2019.01.15.15.04.04; Tue, 15 Jan 2019 15:04:29 -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; dkim=pass header.i=@kernel.org header.s=default header.b=dkmg+raw; 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 S2387547AbfAOQo1 (ORCPT + 99 others); Tue, 15 Jan 2019 11:44:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:34000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387534AbfAOQoY (ORCPT ); Tue, 15 Jan 2019 11:44:24 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C9E392054F; Tue, 15 Jan 2019 16:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547570663; bh=9JfAJUbjmQu7IrKzQRhJ7RTKjFZdgenbGwFdhQWa+QY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dkmg+rawH1jxIqowC8WQUIkYVYSsBblCFtzsduaAJebT59B9CIcLGdV79jITvW3Lt XB6FxLCA6PYlQwdSrnvMzY7lfi+el7RTbDXxVKSABbA2HFPtuKJ6Xe3XuB+fFrBDSf oJd3qgpWGqlRAVjMOa79QNbXaEh6hkXFvtVyf1RA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Icenowy Zheng , Alan Stern Subject: [PATCH 4.20 25/57] USB: storage: add quirk for SMI SM3350 Date: Tue, 15 Jan 2019 17:36:06 +0100 Message-Id: <20190115154912.119357043@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190115154910.734892368@linuxfoundation.org> References: <20190115154910.734892368@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Icenowy Zheng commit 0a99cc4b8ee83885ab9f097a3737d1ab28455ac0 upstream. 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 Cc: stable Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- drivers/usb/storage/unusual_devs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -1266,6 +1266,18 @@ UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xf 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 * Out of Range" for the first READ(10) after a new card is inserted.