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

Commit 608ae605 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-aop-qmp: Do not send duplicate requests to AOP"

parents 4f085eca 68e900c5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -139,6 +139,12 @@ static int clk_aop_qmp_prepare(struct clk_hw *hw)
	struct clk_aop_qmp *clk = to_aop_qmp_clk(hw);

	mutex_lock(&clk_aop_lock);
	/*
	 * Return early if the clock has been enabled already. This
	 * is to avoid issues with sending duplicate enable requests.
	 */
	if (clk->enabled)
		goto err;

	if (clk->level)
		rate = clk->level;
@@ -179,6 +185,9 @@ static void clk_aop_qmp_unprepare(struct clk_hw *hw)

	mutex_lock(&clk_aop_lock);

	if (!clk->enabled)
		goto err;

	rate = clk->disable_state;

	snprintf(mbox_msg, MAX_LEN, "{class: %s, res: %s, val: %ld}",