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

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

Merge "coresight: set appropriate clock rate for coresight devices"

parents a1029ef3 e96c109b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2801,6 +2801,10 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)

	put_online_cpus();

	ret = clk_set_rate(adev->pclk, CORESIGHT_CLK_RATE_TRACE);
	if (ret)
		return ret;

	pm_runtime_put(&adev->dev);

	mutex_lock(&drvdata->mutex);
+4 −0
Original line number Diff line number Diff line
@@ -1900,6 +1900,10 @@ static int tmc_probe(struct amba_device *adev, const struct amba_id *id)
		drvdata->size = readl_relaxed(drvdata->base + TMC_RSZ) * 4;
	}

	ret = clk_set_rate(adev->pclk, CORESIGHT_CLK_RATE_TRACE);
	if (ret)
		return ret;

	pm_runtime_put(&adev->dev);

	if (drvdata->config_type == TMC_CONFIG_TYPE_ETR) {
+3 −0
Original line number Diff line number Diff line
@@ -162,6 +162,9 @@ static int tpiu_probe(struct amba_device *adev, const struct amba_id *id)

	/* Disable tpiu to support older devices */
	tpiu_disable_hw(drvdata);
	ret = clk_set_rate(adev->pclk, CORESIGHT_CLK_RATE_TRACE);
	if (ret)
		return ret;

	pm_runtime_put(&adev->dev);