Skip to content

Commit a826e53

Browse files
tt-fustinibebarino
authored andcommitted
clk: thead: Fix clk gate registration to pass flags
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 <[email protected]> Link: https://lore.kernel.org/r/20250113-th1520-clk_ignore_unused-v1-1-0b08fb813438@tenstorrent.com Signed-off-by: Stephen Boyd <[email protected]>
1 parent 40384c8 commit a826e53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/thead/clk-th1520-ap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,8 @@ static int th1520_clk_probe(struct platform_device *pdev)
10411041
hw = devm_clk_hw_register_gate_parent_data(dev,
10421042
cg->common.hw.init->name,
10431043
cg->common.hw.init->parent_data,
1044-
0, base + cg->common.cfg0,
1044+
cg->common.hw.init->flags,
1045+
base + cg->common.cfg0,
10451046
ffs(cg->enable) - 1, 0, NULL);
10461047
if (IS_ERR(hw))
10471048
return PTR_ERR(hw);

0 commit comments

Comments
 (0)