diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2025-07-01 13:47:22 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2025-07-09 13:29:50 +0200 |
commit | f66c65686abdf317f6ea1ebd3a76a2cdb2020d06 (patch) | |
tree | a158159eb06f1df7af4741c7737265e99baebb27 /scripts/lib/kdoc/kdoc_output.py | |
parent | 2b5630e9886f9121535d421ebfb240a9535f3f1e (diff) |
pmdomain: core: Default to use of_genpd_sync_state() for genpd providers
Unless the typical platform driver that act as genpd provider, has its own
->sync_state() callback implemented let's default to use
of_genpd_sync_state().
More precisely, while adding a genpd OF provider let's assign the
->sync_state() callback, in case the fwnode has a device and its driver
doesn't have the ->sync_state() set already. In this way the typical
platform driver doesn't need to assign ->sync_state(), unless it has some
additional things to manage beyond genpds.
Suggested-by: Saravana Kannan <saravanak@google.com>
Tested-by: Hiago De Franco <hiago.franco@toradex.com> # Colibri iMX8X
Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> # TI AM62A,Xilinx ZynqMP ZCU106
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250701114733.636510-21-ulf.hansson@linaro.org
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions