UFS Host Controllers on Qualcomm Snapdragon SoCs support versions
newer/ greater than UFSHCI_VERSION_21. So, modify the driver
to just print the UFS HC version and not bail-out for newer versions.

Signed-off-by: Bhupesh Sharma <bhupesh.sha...@linaro.org>
---
 drivers/ufs/ufs.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c
index 25639a6d24..b2c3af429e 100644
--- a/drivers/ufs/ufs.c
+++ b/drivers/ufs/ufs.c
@@ -1894,12 +1894,7 @@ int ufshcd_probe(struct udevice *ufs_dev, struct 
ufs_hba_ops *hba_ops)
 
        /* Get UFS version supported by the controller */
        hba->version = ufshcd_get_ufs_version(hba);
-       if (hba->version != UFSHCI_VERSION_10 &&
-           hba->version != UFSHCI_VERSION_11 &&
-           hba->version != UFSHCI_VERSION_20 &&
-           hba->version != UFSHCI_VERSION_21)
-               dev_err(hba->dev, "invalid UFS version 0x%x\n",
-                       hba->version);
+       dev_info(hba->dev, "UFS version : 0x%x\n", hba->version);
 
        /* Get Interrupt bit mask per version */
        hba->intr_mask = ufshcd_get_intr_mask(hba);
-- 
2.38.1

Reply via email to