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 1d8613a23f
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:
parent
641d850a48
commit
bfcb3876f5
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue