FROMGIT: scsi: ufs: qcom: Use ufshci_version() function
Replace the UFSHCI_VERSION_xy macros. Link: https://lore.kernel.org/r/20210310153215.371227-3-caleb@connolly.tech Reviewed-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Caleb Connolly <caleb@connolly.tech> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Bug: 190637035 (cherry picked from commit 1d8613a23f3c3b8f0101e453ff150e05a0d1cd4f git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.14/scsi-staging) Change-Id: Ife086db4f8837bb7aa9fabf47e77cb5aea284903 Signed-off-by: Can Guo <cang@codeaurora.org>
This commit is contained in:

committed by
Sandeep Patil

parent
641d850a48
commit
bfcb3876f5
@@ -838,9 +838,9 @@ static u32 ufs_qcom_get_ufs_hci_version(struct ufs_hba *hba)
|
||||
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
|
||||
|
||||
if (host->hw_ver.major == 0x1)
|
||||
return UFSHCI_VERSION_11;
|
||||
return ufshci_version(1, 1);
|
||||
else
|
||||
return UFSHCI_VERSION_20;
|
||||
return ufshci_version(2, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user