]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: renesas: rzg2l-cpg: Use GENPD_FLAG_* flags instead of local ones
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 15 Oct 2024 16:47:30 +0000 (19:47 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 25 Oct 2024 09:00:33 +0000 (11:00 +0200)
commitddcc2f619b4388b4ccd30786dfc153487845b0c6
tree9db14f51cf01db380109a723d04e83c6e45917fe
parentb739073af44ef8c35f633570c5d86d94721ab1e3
clk: renesas: rzg2l-cpg: Use GENPD_FLAG_* flags instead of local ones

For watchdog PM domain it is necessary to provide GENPD_FLAG_IRQ_SAFE flag
to be able to power on the watchdog PM domain from atomic context. For
this, adjust the current infrastructure to be able to provide GENPD_FLAG_*
for individual PM domains.

With this, remove the always_on flag from rzg2l_cpg_add_pm_domains() as
it is not necessary anymore.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/20241015164732.4085249-3-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r9a08g045-cpg.c
drivers/clk/renesas/rzg2l-cpg.c
drivers/clk/renesas/rzg2l-cpg.h