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

Commit 64d3d9b4 authored by Nitin Rawat's avatar Nitin Rawat Committed by Ram Prakash Gupta
Browse files

scsi: ufs: remove voting for hw ice clk



We would only enable/disable hw ice clk, we won't
set the frequency of this clk from ufs driver.

Change-Id: I25a482387facbf3fbbeb201d9513c4c042f10a0e
Signed-off-by: default avatarNitin Rawat <nitirawa@codeaurora.org>
parent b0e3c557
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1014,7 +1014,8 @@ static int ufshcd_set_clk_freq(struct ufs_hba *hba, bool scale_up)
	list_for_each_entry(clki, head, list) {
		if (!IS_ERR_OR_NULL(clki->clk)) {
			if (scale_up && clki->max_freq) {
				if (clki->curr_freq == clki->max_freq)
				if ((clki->curr_freq == clki->max_freq) ||
				   (!strcmp(clki->name, "core_clk_ice_hw_ctl")))
					continue;

				ret = clk_set_rate(clki->clk, clki->max_freq);
@@ -1032,7 +1033,8 @@ static int ufshcd_set_clk_freq(struct ufs_hba *hba, bool scale_up)
				clki->curr_freq = clki->max_freq;

			} else if (!scale_up && clki->min_freq) {
				if (clki->curr_freq == clki->min_freq)
				if ((clki->curr_freq == clki->min_freq) ||
				   (!strcmp(clki->name, "core_clk_ice_hw_ctl")))
					continue;

				ret = clk_set_rate(clki->clk, clki->min_freq);
@@ -8316,7 +8318,8 @@ static int ufshcd_init_clocks(struct ufs_hba *hba)
		goto out;

	list_for_each_entry(clki, head, list) {
		if (!clki->name)
		if ((!clki->name) ||
		   (!strcmp(clki->name, "core_clk_ice_hw_ctl")))
			continue;

		clki->clk = devm_clk_get(dev, clki->name);