aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBao D. Nguyen <quic_nguyenb@quicinc.com>2025-07-14 13:23:34 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2025-07-14 18:25:10 -0400
commit7a9d5195a7f5871a4ad4e55fc567a2b3bee49a59 (patch)
tree13423d0d37948e2c297c07d6a183445e3a68a809
parentLinux 6.16-rc1 (diff)
downloadlinux-7a9d5195a7f5871a4ad4e55fc567a2b3bee49a59.tar.gz
linux-7a9d5195a7f5871a4ad4e55fc567a2b3bee49a59.zip
scsi: ufs: ufs-qcom: Update esi_vec_mask for HW major version >= 6
The MCQ feature and ESI are supported by all Qualcomm UFS controller versions 6 and above. Therefore, update the ESI vector mask in the UFS_MEM_CFG3 register for platforms with major version number of 6 or higher. Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com> Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com> Link: https://lore.kernel.org/r/20250714075336.2133-2-quic_nitirawa@quicinc.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/ufs/host/ufs-qcom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
index 18a978452001..53301a2c27be 100644
--- a/drivers/ufs/host/ufs-qcom.c
+++ b/drivers/ufs/host/ufs-qcom.c
@@ -2109,8 +2109,7 @@ static int ufs_qcom_config_esi(struct ufs_hba *hba)
retain_and_null_ptr(qi);
- if (host->hw_ver.major == 6 && host->hw_ver.minor == 0 &&
- host->hw_ver.step == 0) {
+ if (host->hw_ver.major >= 6) {
ufshcd_rmwl(hba, ESI_VEC_MASK, FIELD_PREP(ESI_VEC_MASK, MAX_ESI_VEC - 1),
REG_UFS_CFG3);
}