From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAE9F44CAC2; Fri, 27 Feb 2026 16:09:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772208574; cv=none; b=JSH4SUy2a6HP8pzdYWbLDg26Ne+7jAKbRv8br0Rtim9wyi1bgLy5no2blXGPuBHGvDjbgrPQnidXYELHepn+1WwG6W4DaMOA9987cC8bipwE7Q5vaYSLBQOfyaiLwJxLQIK95CO6H18iTHy92bm2+ruoSWeVi3toF+iJ20Zy5yU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772208574; c=relaxed/simple; bh=wFfDmhVBZVzYjanP+6W1tYNpozlyJJFartrzziMjL2A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IO7D1zUE6CzsFxFSVWpp5H4RTju1KCqB2EUQj9f1RgOUEmysK2GCEAtBtaVpRpmQ6DHP63LM4ZJPGJR8Lu3me+GHu3tFq+WjuCW+4BHPm/yoS267fiffLjcDaE+FAI+3UPdQ1AhuME8NRjvyhCRgefXbo55h8eZS1Wxdu8Mg6Ec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=LGv6TG+F; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="LGv6TG+F" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61REaQXO3888752; Fri, 27 Feb 2026 16:09:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=zFZgnvxkZmd cghG841h5N7QMSsUYsqngA8vbqRaop7o=; b=LGv6TG+FsECBjdV8HcLS7ESRYwb YGS1GKBg57YIOiaigp/D9u06oR0S5Ih1sjmwTtXbaQ2nM/GrTRLNT27UAC+zHrCI +SNQoo5pFmg/I913Xf4OH+3fLPMdwvPQfv9T6jLnhgp89V4k20KROZ3rpQo5hz/6 CCKXrqFCd3Sir2wsype3UTAJaJSGTtvCTulkG2D8gN9NgCCy2P4cIZXk3UctSgNO CfHrm1dYAHiAjm61OGNi13FwHPl6fd8kmLzD2e8/UMAV0MGM1C4stuuz20Cs4ajZ 7DrBPtv390ZOxGVNLDlK31Fnh6tR7xPuZOSRr59Z7E0j+UNn8fFqKx5BTuw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cjuytun5r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Feb 2026 16:09:25 +0000 (GMT) Received: from pps.filterd (NALASPPMTA03.qualcomm.com [127.0.0.1]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 61RG9OYa018837; Fri, 27 Feb 2026 16:09:24 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA03.qualcomm.com (PPS) with ESMTPS id 4ck7dem38y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Feb 2026 16:09:24 +0000 Received: from NALASPPMTA03.qualcomm.com (NALASPPMTA03.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 61RG9NPX018829; Fri, 27 Feb 2026 16:09:23 GMT Received: from hu-devc-lv-u22-c.qualcomm.com (hu-cang-lv.qualcomm.com [10.81.25.255]) by NALASPPMTA03.qualcomm.com (PPS) with ESMTPS id 61RG9NoQ018826 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Feb 2026 16:09:23 +0000 Received: by hu-devc-lv-u22-c.qualcomm.com (Postfix, from userid 359480) id 9A8465A0; Fri, 27 Feb 2026 08:09:23 -0800 (PST) From: Can Guo To: avri.altman@wdc.com, bvanassche@acm.org, beanhuo@micron.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, Can Guo , Manivannan Sadhasivam , "James E.J. Bottomley" , linux-arm-msm@vger.kernel.org (open list:ARM/QUALCOMM MAILING LIST), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 11/11] scsi: ufs: ufs-qcom: Enable TX Equalization Date: Fri, 27 Feb 2026 08:08:08 -0800 Message-Id: <20260227160809.2620598-12-can.guo@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260227160809.2620598-1-can.guo@oss.qualcomm.com> References: <20260227160809.2620598-1-can.guo@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Authority-Analysis: v=2.4 cv=bJIb4f+Z c=1 sm=1 tr=0 ts=69a1c1b5 cx=c_pps a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=ENi0XzU5rTanaItzT-wA:9 X-Proofpoint-ORIG-GUID: m1_AuN9M2lhHy72Eu92eSzct4E2A9LXw X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI3MDE0NCBTYWx0ZWRfX7SHgfqLYLelo HWGkLt4b3dK0Q/gt1WMwCJo1szZsLwhozjmGuKksvDxNgRd3jP+AGJUcSZgDC+4S2YwkMmVtVyZ Rm/EAkr8+v26/rjssckxdbKxdlha/IizrJf7iR77/CSq2sqq96d5IJ+9U+Cjz8REpv91DjksSOO jsfn9f3YelqAQ7wj5dFqVln8FuyjLERHTaXA4EmV7fIIThchhSNSdXBtsC4pQL/x7ZXBgjz+1w6 HfSoeN2qX7f5Y7Vx8zXXwLMsFlYpkvGnd3JhgDhu/mmn5t4HDhC639nWHAnCEgO2i9wtJ0ZY2ag oBRm03Am6+FI9v65CSJl2ZlbG00gcpH2jZ2S32LuBQaf3YfnoiUWDX7Sza7mGIq1vfnRThFcqWm nqErKZZ1qLFG5+/tFdOQFomMV54I65AEW+kX1jA34FQ5VAdvnFjeCPijd0CtraP0qwgu455Jw2w tq9Nlo4T6rU59mWw8+g== X-Proofpoint-GUID: m1_AuN9M2lhHy72Eu92eSzct4E2A9LXw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-27_03,2026-02-27_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 adultscore=0 phishscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2602270144 Enable TX Equalization for hosts with HW version 0x7 and onwards. Signed-off-by: Can Guo --- drivers/ufs/host/ufs-qcom.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 8582396fa0d8..7a1d36bdf753 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -1391,6 +1391,8 @@ static void ufs_qcom_set_host_caps(struct ufs_hba *hba) static void ufs_qcom_set_caps(struct ufs_hba *hba) { + struct ufs_qcom_host *host = ufshcd_get_variant(hba); + hba->caps |= UFSHCD_CAP_CLK_GATING | UFSHCD_CAP_HIBERN8_WITH_CLK_GATING; hba->caps |= UFSHCD_CAP_CLK_SCALING | UFSHCD_CAP_WB_WITH_CLK_SCALING; hba->caps |= UFSHCD_CAP_AUTO_BKOPS_SUSPEND; @@ -1398,6 +1400,9 @@ static void ufs_qcom_set_caps(struct ufs_hba *hba) hba->caps |= UFSHCD_CAP_AGGR_POWER_COLLAPSE; hba->caps |= UFSHCD_CAP_RPM_AUTOSUSPEND; + if (host->hw_ver.major >= 0x7) + hba->caps |= UFSHCD_CAP_TX_EQUALIZATION; + ufs_qcom_set_host_caps(hba); } -- 2.34.1