Commit f66c656
committed
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.org1 parent 2b5630e commit f66c656
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2600 | 2600 | | |
2601 | 2601 | | |
2602 | 2602 | | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
2603 | 2608 | | |
2604 | 2609 | | |
2605 | 2610 | | |
| |||
2628 | 2633 | | |
2629 | 2634 | | |
2630 | 2635 | | |
| 2636 | + | |
| 2637 | + | |
2631 | 2638 | | |
2632 | 2639 | | |
2633 | 2640 | | |
| |||
2700 | 2707 | | |
2701 | 2708 | | |
2702 | 2709 | | |
| 2710 | + | |
| 2711 | + | |
2703 | 2712 | | |
2704 | 2713 | | |
2705 | 2714 | | |
| |||
0 commit comments