[PATCH v2 3/5] pmdomain: warn if deep probe enabled and driver missing
Ahmad Fatoum
a.fatoum at barebox.org
Mon Oct 27 12:28:18 PDT 2025
We shall require any deep probe platforms to have a power domain driver,
even if just a dummy. Otherwise a warning will be printed.
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
v1 -> v2:
- no change
---
drivers/base/power.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/drivers/base/power.c b/drivers/base/power.c
index 0cdece210d94..c291f8657cbb 100644
--- a/drivers/base/power.c
+++ b/drivers/base/power.c
@@ -385,8 +385,18 @@ static int __genpd_dev_pm_attach(struct device *dev,
if (ret == -ENOENT)
ret = -EPROBE_DEFER;
- if (!have_genpd_providers && ret == -EPROBE_DEFER)
- return 0;
+ if (ret == -EPROBE_DEFER) {
+ /*
+ * New platforms should have power domain drivers, even if
+ * they don't do anything.
+ */
+ if (deep_probe_is_supported()) {
+ dev_warn(dev, "power domain not found (ignoring)\n");
+ return 0;
+ }
+ if (!have_genpd_providers)
+ return 0;
+ }
/*
* Assume that missing genpds are unresolved
--
2.47.3
More information about the barebox
mailing list