Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2525212imm; Mon, 28 May 2018 09:44:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrz75ptmwXEtO5WQnoCwL78thyM0pZs1l4eyEWlO9CqUNrJ1XZd3ZTXHLO4SOMQe5O0wsIf X-Received: by 2002:a17:902:43a4:: with SMTP id j33-v6mr14606903pld.118.1527525874134; Mon, 28 May 2018 09:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527525874; cv=none; d=google.com; s=arc-20160816; b=tOlXJOo5+mlOJ3Gt+Um4/JrCkZDkxJGBk9OOTDkw70Fkw5lgDq7rqqszGf44A4ws+C Me1TW3Eyo3/LuRZs+/8IqFQoayuu3HL5+jkLKkGL6VX3RaJU1vx+x9vfvUu0Q8EnkKl8 J8ryriXkkhQyWMwxugHCmIPMojMDA4GFcdUVeVS4LE7JhX6Vk171xQYaRrQaFAe2MvAj dZL7G9zU4rlNmf1Wc41RZSWgY256x1St9Mm1EUKPMnUM+qVoPpIre2mmvWnqOA8Ia0j0 a9mRTArqOZcj2b48N0Rx3ZGFfi8afjPZHjNxMgTavbPgrjI9T2qf+ZBZFfWwMhIQUjTt eV4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=GYHjSlS3vOMlAkK0YUMU32q1Iv7nygbAU9QS3p4NX7o=; b=SD5nXVynNRiStJl//y5I5cEwzA3IGdto6m+fQE6+KPpt/zsJr+FR1FMWId6ZgM9ubJ Vb6f+oLbuQ+nc1P2Gi5MU7O+Gl4irk4myGZzLLL3AK1wD1i5qLMOUrZ7Za3x3V1tVIt1 /2GVj3z4HEiIKCLCGQVg+Lml9UubRU9eW9n7Mx2yBTZcXAn+B6i77Kkm9Wx0Bqvm+3Ob KQVF5JLu6NKf8G/Fji89LhVXbNPR7/x4UVNnCzgKKqTAreO9oTXH9xUHuCGT81DY6E85 CfyzPz8IuxEPDd02h0hLO64puFib854XoCFD00BVKvMnbSKzPY7OCIwSk9hA80Prbkx2 RDeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ibo+5J6o; 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 q10-v6si3422753plr.557.2018.05.28.09.44.19; Mon, 28 May 2018 09:44:34 -0700 (PDT) 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=Ibo+5J6o; 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 S933558AbeE1KHp (ORCPT + 99 others); Mon, 28 May 2018 06:07:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:55668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933084AbeE1KHh (ORCPT ); Mon, 28 May 2018 06:07:37 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 71CBF20876; Mon, 28 May 2018 10:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527502057; bh=eAqujEKOAayJyeGVUrabLQ4FsXyGhjGOZuiCitEDzgo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ibo+5J6owyO5KFHPVWKqCoXyVUGbkOV0C/gRK+IpHH+ItH79w/S2wlZ3mDH+QK869 MJ/2NXz3blvFpEHmfLx6bWNoDxeXhB7tyxQT0JhP/d/tfpM1t89XLDVqzopFw3GJVM BSB9xZFKK4RULP3p2ogWDodTjdLseTqGO2C4aePM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sujit Reddy Thumma , Subhash Jadavani , Asutosh Das , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 3.18 046/185] scsi: ufs: Enable quirk to ignore sending WRITE_SAME command Date: Mon, 28 May 2018 12:01:27 +0200 Message-Id: <20180528100054.844517219@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100050.700971285@linuxfoundation.org> References: <20180528100050.700971285@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sujit Reddy Thumma [ Upstream commit 84af7e8b895088d89f246d6b0f82717fafdebf61 ] WRITE_SAME command is not supported by UFS. Enable a quirk for the upper level drivers to not send WRITE SAME command. [mkp: botched patch, applied by hand] Signed-off-by: Sujit Reddy Thumma Signed-off-by: Subhash Jadavani Signed-off-by: Asutosh Das Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ufs/ufshcd.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -2795,6 +2795,8 @@ static int ufshcd_slave_alloc(struct scs /* REPORT SUPPORTED OPERATION CODES is not supported */ sdev->no_report_opcodes = 1; + /* WRITE_SAME command is not supported */ + sdev->no_write_same = 1; ufshcd_set_queue_depth(sdev);