]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: ufs: ufs-qcom: Update esi_vec_mask for HW major version >= 6
authorBao D. Nguyen <quic_nguyenb@quicinc.com>
Mon, 14 Jul 2025 07:53:34 +0000 (13:23 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 14 Jul 2025 22:25:10 +0000 (18:25 -0400)
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>
drivers/ufs/host/ufs-qcom.c

index 18a9784520013e825df0c576070f6d768f4edf27..53301a2c27be18d12d7afb620eb682ab69c7b497 100644 (file)
@@ -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);
        }