Skip to content

Commit

Permalink
RP1 clock debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pelwell committed Sep 16, 2024
1 parent 8c9ca64 commit 1154492
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions drivers/clk/clk-rp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2454,10 +2454,16 @@ static int rp1_clk_probe(struct platform_device *pdev)
desc = &clk_desc_array[i];
if (desc->clk_register && desc->data) {
hws[i] = desc->clk_register(clockman, desc->data);
if (!strcmp(clk_hw_get_name(hws[i]), "clk_i2s")) {
clk_i2s = hws[i];
clk_xosc = clk_hw_get_parent_by_index(clk_i2s, 0);
clk_audio = clk_hw_get_parent_by_index(clk_i2s, 1);
if (IS_ERR_OR_NULL(hws[i])) {
pr_crit("Failed to register RP1 clock '%s' - err %ld\n", *(char **)desc->data, PTR_ERR(hws[i]));

Check failure on line 2458 in drivers/clk/clk-rp1.c

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 128 exceeds 100 columns
hws[i] = NULL;
} else {
pr_crit("Registered RP1 clock '%s'\n", *(char **)desc->data);
if (!strcmp(clk_hw_get_name(hws[i]), "clk_i2s")) {
clk_i2s = hws[i];
clk_xosc = clk_hw_get_parent_by_index(clk_i2s, 0);
clk_audio = clk_hw_get_parent_by_index(clk_i2s, 1);
}
}
}
}
Expand Down

0 comments on commit 1154492

Please sign in to comment.