From patchwork Wed Jan 24 04:22:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Asutosh Das (asd)" X-Patchwork-Id: 10181445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F80D60233 for ; Wed, 24 Jan 2018 04:23:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6ACA228569 for ; Wed, 24 Jan 2018 04:23:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F14E285A5; Wed, 24 Jan 2018 04:23:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FFAD28569 for ; Wed, 24 Jan 2018 04:23:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933326AbeAXEXF (ORCPT ); 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-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);