]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: renesas: cpg-mssr: Set GENPD_FLAG_ALWAYS_ON for clock domain
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 9 Aug 2019 13:44:51 +0000 (15:44 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 23 Aug 2019 09:09:57 +0000 (11:09 +0200)
commitf787216f33ce5b5a2567766398f44ab62157114c
tree56d1a54137f082651eae136a208574ad7c5bd69e
parent7b8f7a76f2dfa6f1e60966b30dc1b5bde2548597
clk: renesas: cpg-mssr: Set GENPD_FLAG_ALWAYS_ON for clock domain

The CPG/MSSR Clock Domain driver does not implement the
generic_pm_domain.power_{on,off}() callbacks, as the domain itself
cannot be powered down.  Hence the domain should be marked as always-on
by setting the GENPD_FLAG_ALWAYS_ON flag, to prevent the core PM Domain
code from considering it for power-off, and doing unnessary processing.

Note that this only affects RZ/A2 SoCs.  On R-Car Gen2 and Gen3 SoCs,
the R-Car SYSC driver handles Clock Domain creation, and offloads only
device attachment/detachment to the CPG/MSSR driver.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/clk/renesas/renesas-cpg-mssr.c