Received: by 10.223.176.46 with SMTP id f43csp255228wra; Tue, 23 Jan 2018 20:23:39 -0800 (PST) X-Google-Smtp-Source: AH8x2246mDNv5nFc4KmQNoIQ+D7OIdIMy7mmoqxyjmpf6nnUR/4LppyUp2tAEHtb8kEisuliJOTD X-Received: by 2002:a17:902:6a16:: with SMTP id m22-v6mr7294895plk.142.1516767819356; Tue, 23 Jan 2018 20:23:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516767819; cv=none; d=google.com; s=arc-20160816; b=jtq1S2dAytgBC8yTVbrboc0S2i05AOquH0lLXD6sekJlsqYf1NNhqGIPXi/fal839K DDotQiG5x5RiMaU0nL5EgHrO9oKCw38fOqFZSUak8fCwPXFa+0GPWYq8pv7Y1zqJXa4q OE2maiyia33+kx5RTPPsIo9zl4asTfSe5plI0UICPEyDykLKjNMLmwvv65ZRven9c4ln N5s7peVNRirP4TfPkmTXST9qDSwS5QWr+4bnIEhT2jnS7FE7yj6ip59PTgK+Nvg3nuxD J7DS2fJJ2+8zT5XKaTy2TE+mKffMp2FtNN816sRWNAnoZb1bf0UQsaUhdAlLAS3/6wdj BFEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bC50HqIf7FeppccUlfkpAK9h42G8LMC1Tds4pxBUJuQ=; b=PTUZ6dBugWCSkpeWPMaOBKfDBWvNSJQO4hWXnG70urtS3h/gNvHdHQgAR7axY6lidF hlcN90hRgBkq+MXHB4x+MtXKF+mccYG21q0yRRw1PzCLztgJyxs4ryqNX8hb4oz3vbo2 srKqrpwPMwf4vjKcg3SUDv2DEF2bhnd39DlBs0DMgE7Abjt5SJiPcxjcgrjIItz5UGpu kl/tKxZ493rDRULWVwtKqymz82PRPJHkW/Oo1SFICjvSQ0e0lNJxYH2wa210b0DNb6G7 DZlBwiADBdesfMHgpo3gz4ix7K4husN6D9/2DodkDrpj4LTWbbn9gdk6IJ/oYAeWhCQT Bsag== 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 68si2237369pfx.384.2018.01.23.20.23.25; Tue, 23 Jan 2018 20:23:39 -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 S933360AbeAXEXF (ORCPT + 99 others); Tue, 23 Jan 2018 23:23:05 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:6161 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932947AbeAXEXD (ORCPT ); Tue, 23 Jan 2018 23:23:03 -0500 X-IronPort-AV: E=Sophos;i="5.46,405,1511856000"; d="scan'208";a="13540194" Received: from ironmsg03-sd.qualcomm.com ([10.53.140.143]) by alexa-out.qualcomm.com with ESMTP; 23 Jan 2018 20:23:03 -0800 X-IronPort-AV: E=McAfee;i="5900,7806,8783"; a="61367303" X-MGA-submission: =?us-ascii?q?MDG+jWvw+sy5n+6C3JZiKd4nbvYu4hXQinf8jv?= =?us-ascii?q?WP4BGQp2YkjGOlgE97ZVapfhnO6Vy/LXtVK5l+KLnTSh1SyBtIJXTlbJ?= =?us-ascii?q?ol5uReUx+ZsE5hgE69Ts4WlfD5zbL+3gDM83FKtBpMnS9jJb6Mv3kd0Z?= =?us-ascii?q?pX?= Received: from asutoshd-linux.qualcomm.com ([10.206.24.163]) by ironmsg03-sd.qualcomm.com with ESMTP; 23 Jan 2018 20:22:58 -0800 Received: by asutoshd-linux.qualcomm.com (Postfix, from userid 92687) id EC8AC1A78; Wed, 24 Jan 2018 09:52:56 +0530 (IST) From: Asutosh Das To: subhashj@codeaurora.org, cang@codeaurora.org, vivek.gautam@codeaurora.org, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, Sujit Reddy Thumma , Asutosh Das , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/1] scsi: ufs: Enable quirk to ignore sending WRITE_SAME command Date: Wed, 24 Jan 2018 09:52:35 +0530 Message-Id: <1516767755-22855-1-git-send-email-asutoshd@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sujit Reddy Thumma WRITE_SAME command is not supported by UFS. Enable a quirk for the upper level drivers to not send WRITE SAME command. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Subhash Jadavani Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufshcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 8af2af3..5a8dc3b 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4356,6 +4356,9 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev) /* WRITE_SAME command is not supported*/ sdev->no_write_same = 1; + /* WRITE_SAME command is not supported*/ + sdev->no_write_same = 1; + ufshcd_set_queue_depth(sdev); ufshcd_get_lu_power_on_wp_status(hba, sdev); -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.