From fcfc5902c3a6266ff747042c40c7cc431e4b3954 Mon Sep 17 00:00:00 2001 From: "Bao D. Nguyen" Date: Thu, 3 Nov 2022 22:08:59 -0700 Subject: [PATCH] scsi: ufs: ufs-qcom: Correct the REG_UFS_CFG0 setting for pineapple Correctly configure the REG_UFS_CFG0 register for supporting UFS4.0 devices on pineapple platforms. Change-Id: If2edfb4d939a15d08bcdc2150e4badd086bc7ccf Signed-off-by: Bao D. Nguyen --- drivers/ufs/host/ufs-qcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 5071ae136db5..97f1660d5e34 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -482,7 +482,7 @@ static void ufs_qcom_select_unipro_mode(struct ufs_qcom_host *host) ufs_qcom_cap_qunipro(host) ? QUNIPRO_SEL : 0, REG_UFS_CFG1); - if (host->hw_ver.major == 0x05) + if (host->hw_ver.major >= 0x05) ufshcd_rmwl(host->hba, QUNIPRO_G4_SEL, 0, REG_UFS_CFG0); /* make sure above configuration is applied before we return */ @@ -646,7 +646,7 @@ static int ufs_qcom_enable_hw_clk_gating(struct ufs_hba *hba) ufshcd_readl(hba, REG_UFS_CFG2) | REG_UFS_CFG2_CGC_EN_ALL, REG_UFS_CFG2); - if (host->hw_ver.major == 0x05) + if (host->hw_ver.major >= 0x05) /* Ensure unused Unipro block's clock is gated */ ufshcd_rmwl(host->hba, UNUSED_UNIPRO_CLK_GATED, UNUSED_UNIPRO_CLK_GATED, UFS_AH8_CFG);