Skip to content

Commit 7a9d519

Browse files
Bao D. Nguyenmartinkpetersen
authored andcommitted
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 <[email protected]> Signed-off-by: Bao D. Nguyen <[email protected]> Signed-off-by: Nitin Rawat <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 19272b3 commit 7a9d519

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/ufs/host/ufs-qcom.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,8 +2109,7 @@ static int ufs_qcom_config_esi(struct ufs_hba *hba)
21092109

21102110
retain_and_null_ptr(qi);
21112111

2112-
if (host->hw_ver.major == 6 && host->hw_ver.minor == 0 &&
2113-
host->hw_ver.step == 0) {
2112+
if (host->hw_ver.major >= 6) {
21142113
ufshcd_rmwl(hba, ESI_VEC_MASK, FIELD_PREP(ESI_VEC_MASK, MAX_ESI_VEC - 1),
21152114
REG_UFS_CFG3);
21162115
}

0 commit comments

Comments
 (0)