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

Commit a81125d6 authored by Deepak Katragadda's avatar Deepak Katragadda Committed by David Collins
Browse files

clk: qcom: clk-rcg2: Update the clock warning during RCG force enable



Use the custom WARN_CLK warning to print out additional information
regarding the hardware register state of the source and its current
parent when the RCG fails to turn on.

Change-Id: I3423bd74a4af5d413b0e3ff33f7ec30a69fc6c25
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent cc7a8b2d
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -164,7 +164,8 @@ static int clk_rcg2_set_force_enable(struct clk_hw *hw)
		udelay(1);
		udelay(1);
	}
	}


	WARN(1, "%s: rcg didn't turn on.", clk_hw_get_name(hw));
	WARN_CLK(hw->core, clk_hw_get_name(hw), count == 0,
		"rcg didn't turn on.");
	return ret;
	return ret;
}
}