diff mbox series

[07/17] ufs: Add support for probing UFS controllers newer than UFSHCI_VERSION_21

Message ID 20230814215457.4075025-8-bhupesh.sharma@linaro.org
State New
Headers show
Series Enable UFS on DragonBoard845c | expand

Commit Message

Bhupesh Sharma Aug. 14, 2023, 9:54 p.m. UTC
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.sharma@linaro.org>
---
 drivers/ufs/ufs.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox series

Patch

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);