clk: renesas: cpg-mssr: Mark clocks as critical only if on at boot
authorUlrich Hecht <uli+renesas@fpond.eu>
Tue, 16 Jun 2020 16:26:24 +0000 (18:26 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 22 Jun 2020 14:53:40 +0000 (16:53 +0200)
commited4a11807d2a35ccfc0d00371f20b826f670b5f2
treeacf3dc936cc3597422ddb1ac680adf23c472304b
parentd9563c972c167e6e8b40c840d476d30af8e5f667
clk: renesas: cpg-mssr: Mark clocks as critical only if on at boot

This allows us to add the RWDT clock to the list of critical clocks without
keeping it enabled needlessly if not used.

Changing the semantics of crit_mod_clks in this way is safe for the current
user (INTC-AP) because it is never off at boot time.

Signed-off-by: Ulrich Hecht <uli+renesas@fpond.eu>
Link: https://lore.kernel.org/r/20200616162626.27944-2-uli+renesas@fpond.eu
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/renesas-cpg-mssr.c