Skip to content

Commit

Permalink
clk: thead: Fix clk gate registration to pass flags
Browse files Browse the repository at this point in the history
Modify the call to devm_clk_hw_register_gate_parent_data() to actually
pass the clk flags from hw.init instead of just 0. This is necessary to
allow individual clk gates to specify their own clk flags.

Fixes: ae81b69 ("clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks")
Signed-off-by: Drew Fustini <dfustini@tenstorrent.com>
Link: https://lore.kernel.org/r/20250113-th1520-clk_ignore_unused-v1-1-0b08fb813438@tenstorrent.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Drew Fustini authored and Stephen Boyd committed Jan 13, 2025
1 parent 40384c8 commit a826e53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/clk/thead/clk-th1520-ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,8 @@ static int th1520_clk_probe(struct platform_device *pdev)
hw = devm_clk_hw_register_gate_parent_data(dev,
cg->common.hw.init->name,
cg->common.hw.init->parent_data,
0, base + cg->common.cfg0,
cg->common.hw.init->flags,
base + cg->common.cfg0,
ffs(cg->enable) - 1, 0, NULL);
if (IS_ERR(hw))
return PTR_ERR(hw);
Expand Down

0 comments on commit a826e53

Please sign in to comment.