]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmdomain: core: introduce dev_pm_genpd_is_on()
authorHiago De Franco <hiago.franco@toradex.com>
Sun, 29 Jun 2025 17:25:10 +0000 (14:25 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 16 Jul 2025 18:54:27 +0000 (20:54 +0200)
commit09813cde376d9d8f30eaf761534532101a0a7755
tree2de0ea0f93736410f69bff657d52e2791e806720
parentfcddcb7e8f38a40db99f87a962c5d0a153a76566
pmdomain: core: introduce dev_pm_genpd_is_on()

This helper function returns the current power status of a given generic
power domain.

As example, remoteproc/imx_rproc.c can now use this function to check
the power status of the remote core to properly set "attached" or
"offline" modes.

Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Link: https://lore.kernel.org/r/20250629172512.14857-2-hiagofranco@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/core.c
include/linux/pm_domain.h