Received: by 10.192.165.148 with SMTP id m20csp1710168imm; Thu, 3 May 2018 04:16:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr82mvNa3Ve9s1C1zg8nQssf44S0VKgAJ2Mmy8n++HRKA8rAEXePLAM11ZJzw32VWsCmCrY X-Received: by 2002:a17:902:a985:: with SMTP id bh5-v6mr24023383plb.0.1525346187111; Thu, 03 May 2018 04:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525346187; cv=none; d=google.com; s=arc-20160816; b=IzwJLMv8dZdI0SgzQl3Sn2bbyV+upCbjF0ddwgSFtjo2V9T2LNDEapQaKg1oRFWiAn Sacu1SKDPOJqpX6F6bbvJ6ow+M0mj+L3RaLqGyKbMn+9Kso2b4WsBEyXIbzrahRl7jNr GOGdPFXfg0qWkB9Cc2x3mKL+rCETLTQes+yk7C5Zbn3uLjHqT1sz5cppYMug1lqxnY/C 7m7rPN6Il4Yv3fXh/Hy9vN96H9N5VVEE5F1FbCbB4BOQ4bts9Q9AbkQY7l2FV/JoYkDH 3YlQv0qfNj/gMk0J5KB89j5TBUTlukSWHeq8/+ij7Fy5rICLhruy+cKSCw/HyMFCXnO3 9dsQ== 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=O/rwp3VIIJYAIB/k8Fvz5VymqQAQp0O4QL7aYMmwGdI=; b=zMkL85hEQA9DIs2s/OsLSoT69QhTsst2dB4rDw6+a9eZhvjbP9Ahb+Sh+dGKQsthF8 Ju3aVUZkGvZLcC+R0M3ElwvG/k8oFdrnymiXAUhbKHrENoovPaKSP2rfce6w/Xa44ggl 91SxEfo90OdakJ4FcnSPQ8rkCN+PkZQl/TIwS+gZG1fk8F4Q9MIY8kZcMssF2cGieNdW gk/1HorIeTZZH+mm6VMS45EuDkHP30hd9fx4Uva4di1EgO55My7zb7a/tikJkHRjSVKv 51/2N/MRnCmiL9ugjgjGEkxJMaE30/gIM4ix8TEVgQNRXBxq9khQLap0x3FxNIVvz3YR kNXA== 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 u8-v6si14011210plz.392.2018.05.03.04.16.13; Thu, 03 May 2018 04:16:27 -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; 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 S1751511AbeECLOT (ORCPT + 99 others); Thu, 3 May 2018 07:14:19 -0400 Received: from alexa-out-tai-02.qualcomm.com ([103.229.16.227]:53487 "EHLO alexa-out-tai-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbeECLOO (ORCPT ); Thu, 3 May 2018 07:14:14 -0400 X-Greylist: delayed 375 seconds by postgrey-1.27 at vger.kernel.org; Thu, 03 May 2018 07:14:07 EDT X-IronPort-AV: E=Sophos;i="5.49,358,1520870400"; d="scan'208";a="447812" Received: from ironmsg01-tai.qualcomm.com ([10.249.140.6]) by alexa-out-tai-02.qualcomm.com with ESMTP; 03 May 2018 19:07:50 +0800 X-IronPort-AV: E=McAfee;i="5900,7806,8881"; a="7302707" Received: from asutoshd-linux.qualcomm.com ([10.206.24.163]) by ironmsg01-tai.qualcomm.com with ESMTP; 03 May 2018 19:07:41 +0800 Received: by asutoshd-linux.qualcomm.com (Postfix, from userid 92687) id A3C022E8E; Thu, 3 May 2018 16:37:38 +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, asutoshd@codeaurora.org, linux-mmc@vger.kernel.org Cc: linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 07/10] scsi: ufs-qcom: remove broken hci version quirk Date: Thu, 3 May 2018 16:37:19 +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 d9edef8..27be327 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -1103,7 +1103,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; hba->quirks |= UFSHCD_QUIRK_BROKEN_PWR_MODE_CHANGE; 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.