]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:59:14 +0000 (18:59 +0200)
commit18184bd06a692dac3685cd359685f40f912327c2
tree51c3e0903c6915b10ade2927af2abb562b8b3b04
parentb4b220dfcd3658b596d6c1885a11528e3157b9e6
clk: renesas: cpg-mssr: Set GENPD_FLAG_ALWAYS_ON for clock domain

[ Upstream commit f787216f33ce5b5a2567766398f44ab62157114c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/renesas/renesas-cpg-mssr.c