]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: rzg2l: Ignore enable for core clocks
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Tue, 19 Nov 2024 19:36:26 +0000 (19:36 +0000)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 8 Dec 2024 22:06:52 +0000 (23:06 +0100)
commit9a699a0a0d62b326d04ac248578b6ce6f53be525
tree891bc833a5124624388b6e4868af6f2d2078d01a
parent45f05f681224d88d1b170063001b59edc8fc24cf
clk: rzg2l: Ignore enable for core clocks

In the RZ/G2L family, core clocks are always on and can't be disabled.
However, drivers which are shared with other SoCs may call clk_enable()
or clk_enable_bulk() for a clock referenced in the device tree which
happens to be a core clock on the RZ/G2L. To avoid the need for
conditionals in these drivers, simply ignore attempts to enable a core
clock.

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/clk/renesas/rzg2l-cpg.c