Received: by 10.223.176.5 with SMTP id f5csp3827820wra; Mon, 29 Jan 2018 20:42:28 -0800 (PST) X-Google-Smtp-Source: AH8x226cntvkIZDkHRasNiFZFaOXvJ/jrDTCTB3J8KB5+zmVnLHU4b4JsiK0Eq/3KNZpxITHaP2N X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr23752122pld.39.1517287347956; Mon, 29 Jan 2018 20:42:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517287347; cv=none; d=google.com; s=arc-20160816; b=FLeVPRFPU2quNbkTD364d1yWd0fow2T0gHvnKf+SR7bR/oCeI001UHVU6XqFcGzArm /86FUBajEVGbp/VcnOji7wlghRe0uPKeTsxgBDuDykwnBGZEGNmA7w7GTjXcy/Q5tUem 6M5Bx7hToYAyXc3cx9zbmtm+SxpOYClg0oNps+uXHiHXpBqsuphu1U5zzvFCJLStKwgu Wcejj7x1EbT6UynVRhXTlg+8bbUtjisCk7X2VT+RHM/GKt9puPgbZ/vHWb6fVxouVVca W0GpSVey0JVVFdvLx/nHL02cB5OR0yRtE+nEUwm9CPRnk73u4Nb64Ba7jK6RWF0p4/ED WIRQ== 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=r7Egcuf4AoINUoJrkr4Ei9kmy149Ss8c1PKtg0nVpls=; b=H0MQN43NSI3nsRssCZz2KUiP8ResHtpvixAnylJ7vzc8Hl2F4dtA+wZr88F4maXiUg NfNBaxxLRjC9hmU+7JIzX7bjAB11ojnFCejJPQQAaM11ySnD4TXvYeECu4jM7yyGB3Z0 iohjsB2WV7t4Q21D9V//aotp41KRrgQOaFGcoTQEekcBTxBAUo4eZW1ZJ1YCl10eSIgg JEpu9Vhw80zD69FqpCzrlC1Nt8DG9daAD0cKeuyYP6dymD2Yh/mJjpMhjqUKcHpmVK8+ 77lfX+EIJkTCxZtOKHyvmi3LxDc8+3sCqlLlnDJeVh1OwICZ9LMDlH/F6rYAvatOZCtV BrJQ== 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 62-v6si10891669ple.267.2018.01.29.20.42.12; Mon, 29 Jan 2018 20:42:27 -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 S1752658AbeA3Elv (ORCPT + 99 others); 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-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.