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

Commit 6eb79127 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: clk-cpu-osm: Move the speedbin logic to after resource init"

parents a99e9c77 4e2e1dcd
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -3021,6 +3021,14 @@ static int clk_cpu_osm_driver_probe(struct platform_device *pdev)

	clk_data->clk_num = num_clks;

	rc = clk_osm_resources_init(pdev);
	if (rc) {
		if (rc != -EPROBE_DEFER)
			dev_err(&pdev->dev, "OSM resources init failed, rc=%d\n",
				rc);
		return rc;
	}

	if (l3_clk.vbases[EFUSE_BASE]) {
		/* Multiple speed-bins are supported */
		pte_efuse = readl_relaxed(l3_clk.vbases[EFUSE_BASE]);
@@ -3092,14 +3100,6 @@ static int clk_cpu_osm_driver_probe(struct platform_device *pdev)
		return rc;
	}

	rc = clk_osm_resources_init(pdev);
	if (rc) {
		if (rc != -EPROBE_DEFER)
			dev_err(&pdev->dev, "OSM resources init failed, rc=%d\n",
				rc);
		return rc;
	}

	rc = clk_osm_acd_resources_init(pdev);
	if (rc) {
		dev_err(&pdev->dev, "ACD resources init failed, rc=%d\n",