diff options
author | 2025-07-01 13:47:22 +0200 | |
---|---|---|
committer | 2025-07-09 13:29:50 +0200 | |
commit | f66c65686abdf317f6ea1ebd3a76a2cdb2020d06 (patch) | |
tree | a158159eb06f1df7af4741c7737265e99baebb27 /include | |
parent | driver core: Add dev_set_drv_sync_state() (diff) | |
download | wireguard-linux-f66c65686abdf317f6ea1ebd3a76a2cdb2020d06.tar.xz wireguard-linux-f66c65686abdf317f6ea1ebd3a76a2cdb2020d06.zip |
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 'include')
0 files changed, 0 insertions, 0 deletions