Received: by 10.223.185.116 with SMTP id b49csp274018wrg; Tue, 20 Feb 2018 21:06:16 -0800 (PST) X-Google-Smtp-Source: AH8x227HQtMz6FTXRTDQBlb9m3EOvMHQtbHreuyoudfbZBkRRNvS2GE3GMK4X08yr0QbVxoRG/QE X-Received: by 10.101.96.47 with SMTP id p15mr1673307pgu.390.1519189575954; Tue, 20 Feb 2018 21:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519189575; cv=none; d=google.com; s=arc-20160816; b=V9v336pS9C2CCiQ1VMc8Gk4bXfBTg3MKkHD1AoDDjSkSJV7GToAJJf4j2EGDdnGE3U DTaOFhw3EglSumBEzFRJoV1bOH0Gv1tUTNMMO/ClSup7buErg8+iW9bvhTcTgj1he60p a7h5gh7txleSWMk7cvE2+3GPmpuk3Si5ElL7dFkanLW5aoPKcdytmIBnj16hEs3tgWX2 AvMYsSFgU8V8X0o4IQks2VMbq4Mo+5cI3Qhxykb2hb3zXK8HeCsppvut8qlsn1jpCfp9 uNzHOBzuU42lvbIwIerf1sen6qQ9BjyhUbF9kpjt/tq07ctw3up7cysfKaMXhq56CUh8 pkHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=r7Egcuf4AoINUoJrkr4Ei9kmy149Ss8c1PKtg0nVpls=; b=BBd8D2UXIqD33IFcoTdziYQ0TeUuuxxvLhb1iQFQVHJut193MfN2vUlsLNMxufuAF8 Zs7vYL2eG/t/raoIJRekqulcR630KkujT3/TpCvjUe/b3LcR5rEGIGqdS+oGidaDd9P6 iY+7TTA2PgTjO9D/7781GdIdMR8enwMqH2AdxyBuE0+QCxqbFHUDw8RSo2kl/kGYP4p4 B5+Hw5MPY9fUNIr4JGv3kS7R1YhLVDnrdg62Bo+bzhGLlJqQQXCkxEDSS6Egh+CYSPz3 +i8gc3deIdOFCp7xUy/CG3SI6pLRKfF/9EHNlukGY2eTGKR2NKGi7hou0szGtlWyOrhQ WtfQ== 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 j132si2934418pgc.743.2018.02.20.21.06.01; Tue, 20 Feb 2018 21:06:15 -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 S1751312AbeBUFDV (ORCPT + 99 others); Wed, 21 Feb 2018 00:03:21 -0500 Received: from alexa-out-tai-01.qualcomm.com ([103.229.16.226]:64432 "EHLO alexa-out-tai-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbeBUFDT (ORCPT ); Wed, 21 Feb 2018 00:03:19 -0500 X-Greylist: delayed 374 seconds by postgrey-1.27 at vger.kernel.org; Wed, 21 Feb 2018 00:03:18 EST X-IronPort-AV: E=Sophos;i="5.46,542,1511798400"; d="scan'208";a="712" Received: from ironmsg03-tai.qualcomm.com ([10.249.140.8]) by alexa-out-tai-01.qualcomm.com with ESMTP; 21 Feb 2018 12:57:07 +0800 X-IronPort-AV: E=McAfee;i="5900,7806,8810"; a="2373333" Received: from asutoshd-linux.qualcomm.com ([10.206.24.163]) by ironmsg03-tai.qualcomm.com with ESMTP; 20 Feb 2018 20:56:52 -0800 Received: by asutoshd-linux.qualcomm.com (Postfix, from userid 92687) id 12A0D2393; Wed, 21 Feb 2018 10:26:49 +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 6/9] scsi: ufs-qcom: remove broken hci version quirk Date: Wed, 21 Feb 2018 10:26:37 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)) -- 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.