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

Commit 3fc584bf authored by Yuanfang Zhang's avatar Yuanfang Zhang Committed by Gerrit - the friendly Code Review server
Browse files

Coresight-cti: No need to keep clk being on for cti save/restore



CTI save/restore function only works when CTI have been enabled. In
this situation, clk have been voted. So no need to keep clk being on.

Change-Id: I3a4eb7aec7cc169128f00c2731fecbb68b932ff5
Signed-off-by: default avatarYuanfang Zhang <zhangyuanfang@codeaurora.org>
parent 0d656015
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1484,13 +1484,6 @@ static int cti_probe(struct amba_device *adev, const struct amba_id *id)
		drvdata->cti_hwclk = of_property_read_bool(adev->dev.of_node,
							   "qcom,cti-hwclk");
	}
	if (drvdata->cti_save && !drvdata->cti_hwclk) {
		ret = pm_runtime_get_sync(drvdata->dev);
		if (ret < 0) {
			pm_runtime_put(drvdata->dev);
			return ret;
		}
	}

	mutex_lock(&cti_lock);
	drvdata->cti.name = ((struct coresight_platform_data *)