From patchwork Tue Jan 30 04:41:21 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: 10191323 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 44EEA60388 for ; Tue, 30 Jan 2018 04:42:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36C382580E for ; Tue, 30 Jan 2018 04:42:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B6BC288F7; Tue, 30 Jan 2018 04:42:07 +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 A6CBF288EE for ; Tue, 30 Jan 2018 04:42:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752401AbeA3Elv (ORCPT ); Mon, 29 Jan 2018 23:41:51 -0500 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:16035 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbeA3Elu (ORCPT ); Mon, 29 Jan 2018 23:41:50 -0500 X-IronPort-AV: E=Sophos;i="5.46,433,1511856000"; d="scan'208";a="123123821" Received: from unknown (HELO ironmsg02-tai.qualcomm.com) ([10.249.140.7]) by sabertooth01.qualcomm.com with ESMTP; 29 Jan 2018 20:41:49 -0800 X-IronPort-AV: E=McAfee;i="5900,7806,8789"; a="281202" X-MGA-submission: =?us-ascii?q?MDFfKdELxUMq4O7zKZ3ONuxiLaYmu9xihi0D1k?= =?us-ascii?q?t0PnNWbt8Ml9VOksLwHzGF0uBYSawFFEoDWCpb8XOppM+6piq7wck0Rd?= =?us-ascii?q?JcAhjf+Ux9mJXqngbGBXZ76Hyu16pwhGAQ9fXV61Jl82GtqSD3e0A/6o?= =?us-ascii?q?z6?= Received: from asutoshd-linux.qualcomm.com ([10.206.24.163]) by ironmsg02-tai.qualcomm.com with ESMTP; 29 Jan 2018 20:41:29 -0800 Received: by asutoshd-linux.qualcomm.com (Postfix, from userid 92687) id 0B5321AE1; Tue, 30 Jan 2018 10:11:27 +0530 (IST) From: Asutosh Das To: subhashj@codeaurora.org, cang@codeaurora.org, vivek.gautam@codeaurora.org, rnayak@codeaurora.org, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, Asutosh Das , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/1] scsi: ufs-qcom: remove broken hci version quirk Date: Tue, 30 Jan 2018 10:11:21 +0530 Message-Id: <1517287281-8622-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: Subhash Jadavani UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS host controller version 2.x.y and this has been fixed from version 3.x.y onwards, hence this change removes this quirk for version 3.x.y onwards. Signed-off-by: Subhash Jadavani Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 2b38db2..221820a 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -1098,7 +1098,7 @@ static void ufs_qcom_advertise_quirks(struct ufs_hba *hba) hba->quirks |= UFSHCD_QUIRK_BROKEN_LCC; } - if (host->hw_ver.major >= 0x2) { + if (host->hw_ver.major == 0x2) { hba->quirks |= UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION; if (!ufs_qcom_cap_qunipro(host))