Skip to content

Commit 75c6f1a

Browse files
JackyBaiabelvesa
authored andcommitted
clk: imx: Add 'CLK_SET_RATE_NO_REPARENT' for composite-7ulp
For the imx_composite-7ulp clock type, The clock parent should be changed explicitly by end user of this clock, if the the 'CLK_SET_RATE_NO_REPARENT' flag is not set, when user want to set a clock frequency that can NOT get from HW accurately, then the clock's parent will be switch to another clock parent sometimes. This is NOT what we expected and introduced some additional debug effort, so add the 'CLK_SET_RATE_NO_REPARENT' to avoid such unexpected result. Signed-off-by: Jacky Bai <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abel Vesa <[email protected]>
1 parent 0f6e3c1 commit 75c6f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/imx/clk-composite-7ulp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name,
131131
mux_hw, &clk_mux_ops, fd_hw,
132132
&clk_fractional_divider_ops, gate_hw,
133133
has_swrst ? &pcc_gate_ops : &clk_gate_ops, CLK_SET_RATE_GATE |
134-
CLK_SET_PARENT_GATE);
134+
CLK_SET_PARENT_GATE | CLK_SET_RATE_NO_REPARENT);
135135
if (IS_ERR(hw)) {
136136
kfree(mux);
137137
kfree(fd);

0 commit comments

Comments
 (0)