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

Commit b655f36e authored by Jernej Škrabec's avatar Jernej Škrabec Committed by Chen-Yu Tsai
Browse files

clk: sunxi-ng: Make fractional helper less chatty



ccu_frac_helper_read_rate() prints some info which is not really
helpful except during debugging.

Replace printk() with pr_debug().

Fixes: 89a3dfb7 ("clk: sunxi-ng: Add fractional lib")
Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 1e92ae65
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -67,17 +67,17 @@ unsigned long ccu_frac_helper_read_rate(struct ccu_common *common,
{
	u32 reg;

	printk("%s: Read fractional\n", clk_hw_get_name(&common->hw));
	pr_debug("%s: Read fractional\n", clk_hw_get_name(&common->hw));

	if (!(common->features & CCU_FEATURE_FRACTIONAL))
		return 0;

	printk("%s: clock is fractional (rates %lu and %lu)\n",
	pr_debug("%s: clock is fractional (rates %lu and %lu)\n",
		 clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]);

	reg = readl(common->base + common->reg);

	printk("%s: clock reg is 0x%x (select is 0x%x)\n",
	pr_debug("%s: clock reg is 0x%x (select is 0x%x)\n",
		 clk_hw_get_name(&common->hw), reg, cf->select);

	return (reg & cf->select) ? cf->rates[1] : cf->rates[0];