From: Ahmad Fatoum <[email protected]> With the addition of the SCMI power domain driver that's applicable to any ARM SoC, it's not appropriate to keep it a SoC-specific decision, whether power domains need to be handled.
That scheme also breaks down as soon as we have some power domains that need to be handled and some that don't. The original commit justifies the addition by support of OMAP HW in multi_v7_defconfig. We do not support deep probe on OMAP yet, so it's unaffected and when we do, barebox,allow-dummy can be peppered around the device tree to get rid of the warning. If anybody else gets warnings from this, they need to add barebox,allow-dummy to the single power domain in question. Signed-off-by: Ahmad Fatoum <[email protected]> --- v2 -> v3: - new change --- drivers/of/base.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 3cec2878efab..0a7704ca1045 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -22,6 +22,7 @@ #include <linux/clk.h> #include <linux/ctype.h> #include <linux/err.h> +#include <pm_domain.h> static struct device_node *root_node; @@ -2109,7 +2110,9 @@ int barebox_register_of(struct device_node *root) if (IS_ENABLED(CONFIG_OFDEVICE)) { of_clk_init(); - if (!deep_probe_is_supported()) + if (deep_probe_is_supported()) + genpd_activate(); + else return of_probe(); } -- 2.47.3
