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

Commit c9a88310 authored by Taniya Das's avatar Taniya Das Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: Move all seq_printf to use clock_debug_output macro



Use clock_debug_output in place of seq_printf to correctly dump data to
kernel logs in case of failures.

Change-Id: Ied51e8dd9bfb7cfdbc119122c684ae424ff55d03
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent a876aa56
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2066,7 +2066,8 @@ static void clk_fabia_pll_list_registers(struct seq_file *f, struct clk_hw *hw)
	for (i = 0; i < size; i++) {
		regmap_read(pll->clkr.regmap, pll->offset + data[i].offset,
					&val);
		seq_printf(f, "%20s: 0x%.8x\n", data[i].name, val);
		clock_debug_output(f, false,
				"%20s: 0x%.8x\n", data[i].name, val);
	}

	regmap_read(pll->clkr.regmap, pll->offset + data[0].offset, &val);
@@ -2074,7 +2075,8 @@ static void clk_fabia_pll_list_registers(struct seq_file *f, struct clk_hw *hw)
	if (val & PLL_FSM_ENA) {
		regmap_read(pll->clkr.regmap, pll->clkr.enable_reg +
					data1[0].offset, &val);
		seq_printf(f, "%20s: 0x%.8x\n", data1[0].name, val);
		clock_debug_output(f, false,
				"%20s: 0x%.8x\n", data1[0].name, val);
	}
}

+2 −1
Original line number Diff line number Diff line
@@ -153,7 +153,8 @@ static void cpucc_clk_list_registers(struct seq_file *f, struct clk_hw *hw)
	for (i = 0; i < size; i++) {
		regmap_read(cpuclk->clkr.regmap,
				cpuclk->reg_offset + data[i].offset, &val);
		seq_printf(f, "%20s: 0x%.8x\n", data[i].name, val);
		clock_debug_output(f, false,
				"%20s: 0x%.8x\n", data[i].name, val);
	}
}

+2 −1
Original line number Diff line number Diff line
@@ -392,7 +392,8 @@ static void clk_pll_hf_list_registers(struct seq_file *f, struct clk_hw *hw)
	for (i = 0; i < size; i++) {
		regmap_read(pll->clkr.regmap, pll->mode_reg + data[i].offset,
									&val);
		seq_printf(f, "%20s: 0x%.8x\n", data[i].name, val);
		clock_debug_output(f, false,
				"%20s: 0x%.8x\n", data[i].name, val);
	}
}