]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: Respect CLK_OPS_PARENT_ENABLE during recalc
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Mon, 15 Dec 2025 10:23:58 +0000 (11:23 +0100)
committerStephen Boyd <sboyd@kernel.org>
Fri, 23 Jan 2026 01:44:30 +0000 (17:44 -0800)
commit669917676e93fca5ea3c66fc9539830312bec58e
tree372c0373d0d9e305e4a4c64caa2b628905ca83b6
parenta2ed1aed687a21738a6c8bd4043149c443298e88
clk: Respect CLK_OPS_PARENT_ENABLE during recalc

When CLK_OPS_PARENT_ENABLE was introduced, it guarded various clock
operations, such as setting the rate or switching parents. However,
another operation that can and often does touch actual hardware state is
recalc_rate, which may also be affected by such a dependency.

Add parent enables/disables where the recalc_rate op is called directly.

Fixes: fc8726a2c021 ("clk: core: support clocks which requires parents enable (part 2)")
Fixes: a4b3518d146f ("clk: core: support clocks which requires parents enable (part 1)")
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c