Skip to content

Commit fc59462

Browse files
mhennerichbebarino
authored andcommitted
clk: clk-gpio: propagate rate change to parent
For an external clock source, which is gated via a GPIO, the rate change should typically be propagated to the parent clock. The situation where we are requiring this propagation, is when an external clock is connected to override an internal clock (which typically has a fixed rate). The external clock can have a different rate than the internal one, and may also be variable, thus requiring the rate propagation. This rate change wasn't propagated until now, and it's unclear about cases where this shouldn't be propagated. Thus, it's unclear whether this is fixing a bug, or extending the current driver behavior. Also, it's unsure about whether this may break any existing setups; in the case that it does, a device-tree property may be added to disable this flag. Signed-off-by: Michael Hennerich <[email protected]> Signed-off-by: Alexandru Ardelean <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 54ecb8f commit fc59462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static int gpio_clk_driver_probe(struct platform_device *pdev)
280280
else
281281
clk = clk_register_gpio_gate(&pdev->dev, node->name,
282282
parent_names ? parent_names[0] : NULL, gpiod,
283-
0);
283+
CLK_SET_RATE_PARENT);
284284
if (IS_ERR(clk))
285285
return PTR_ERR(clk);
286286

0 commit comments

Comments
 (0)