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

Commit e27fad26 authored by Taniya Das's avatar Taniya Das
Browse files

clk: qcom: clk-alpha-pll: print PLL registers for failures



Print PLL registers in the case where PLL fails to latch. This would
help dump and analyze the PLL current state.

Change-Id: I107d0b70da872b3b849e60e7cd8848fcd70977f3
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 3225a4fe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1865,7 +1865,8 @@ static int alpha_pll_lucid_set_rate(struct clk_hw *hw, unsigned long rate,
	udelay(1);
	regmap_read(pll->clkr.regmap, PLL_MODE(pll), &regval);
	if (!(regval & ALPHA_PLL_ACK_LATCH)) {
		WARN(1, "PLL latch failed. Output may be unstable!\n");
		WARN_CLK(hw->core, clk_hw_get_name(hw), 1,
				"PLL latch failed. Output may be unstable!\n");
		return -EINVAL;
	}