Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efc2b830 authored by Subhash Jadavani's avatar Subhash Jadavani Committed by Can Guo
Browse files

scsi: ufs: msm: skip DME_HW_CGC_EN set for specific UFS host controller



For specific UFS host controllers, they should be not writing 1 to
DME_HW_CGC_EN during init sequence (since default value is 0). This change
skips setting DME_HW_CGC_EN for specific UFS host controllers.

Change-Id: I4ee70b7991a79a94b6bebaa840876e2effb0dc4e
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 28bb5f16
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -344,9 +344,15 @@ static int ufs_qcom_enable_hw_clk_gating(struct ufs_hba *hba)
	if (err)
		goto out;

	if (!((host->hw_ver.major == 4) && (host->hw_ver.minor == 0) &&
	     (host->hw_ver.step == 0))) {
		err = ufshcd_dme_rmw(hba, DME_VS_CORE_CLK_CTRL_DME_HW_CGC_EN,
					DME_VS_CORE_CLK_CTRL_DME_HW_CGC_EN,
					DME_VS_CORE_CLK_CTRL);
	} else {
		dev_err(hba->dev, "%s: skipping DME_HW_CGC_EN set\n",
			__func__);
	}
out:
	return err;
}