Skip to content

Commit 77010ac

Browse files
authored
Refactor clock handling and add debug info
Removed error logging for NULL clock in ra_get_pll_idx function and added PLL debug dump in ra_compare_clk_list function. Signed-off-by: Crecker <104427569+Creeeeger@users.noreply.github.com>
1 parent f722ccd commit 77010ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/soc/samsung/cal-if

drivers/soc/samsung/cal-if/ra.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,6 @@ static int ra_set_mux_rate(struct cmucal_clk * clk, unsigned int rate) {
856856
int i;
857857

858858
if (!clk) {
859-
pr_info("CMUCAL: ra_get_pll_idx: ERROR clk is NULL -> return "
860-
"(unsigned)-1\n");
861859
return (unsigned int)-1;
862860
}
863861

@@ -1746,6 +1744,8 @@ static int ra_set_mux_rate(struct cmucal_clk * clk, unsigned int rate) {
17461744
list[i], type);
17471745

17481746
clk = cmucal_get_node(list[i]);
1747+
ra_dump_pll_debug(clk);
1748+
17491749
pr_info("RA: ra_compare_clk_list: idx=%u cmucal_get_node(id=0x%x) "
17501750
"-> clk=%p\n",
17511751
i, list[i], clk);

0 commit comments

Comments
 (0)