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

Commit d828723b authored by Karthik Parsha's avatar Karthik Parsha Committed by Gerrit - the friendly Code Review server
Browse files

qcom: msm-pm: Do not fail on L2 clk get failure



On some targets the l2 clock does not have a separate reference. The clock
is enabled/disabled based on the cores cpu clock references.
Do not fail probe if clock get on l2 clock fails.

Change-Id: I7949fac5789acb7aa1acff5eb242ee83288bf044
Signed-off-by: default avatarKarthik Parsha <kparsha@codeaurora.org>
parent 0bae66c3
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -309,12 +309,7 @@ static int ramp_up_first_cpu(int cpu, int saved_rate)
		pr_info("CPU%u: %s: restore clock rate\n",
				cpu, __func__);

	if (l2_clk) {
		rc = clk_enable(l2_clk);
		if (rc)
			pr_err("%s(): Error restoring l2 clk\n",
					__func__);
	}
	clk_enable(l2_clk);

	if (cpu_clk) {
		int ret = clk_enable(cpu_clk);
@@ -827,8 +822,11 @@ static int msm_pm_clk_init(struct platform_device *pdev)
		return 0;

	l2_clk = devm_clk_get(&pdev->dev, "l2_clk");
	if (IS_ERR(l2_clk))
		pr_warn("%s: Could not get l2_clk (-%ld)\n", __func__,
			PTR_ERR(l2_clk));

	return PTR_RET(l2_clk);
	return 0;
}

static int msm_cpu_pm_probe(struct platform_device *pdev)