From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH v3 6/6] pmdomain: genpd_activate() automatically for deep probe platforms
Date: Mon, 1 Dec 2025 09:45:56 +0100 [thread overview]
Message-ID: <20251201084737.1270303-6-a.fatoum@barebox.org> (raw)
In-Reply-To: <20251201084737.1270303-1-a.fatoum@barebox.org>
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
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 <a.fatoum@barebox.org>
---
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
next prev parent reply other threads:[~2025-12-01 8:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 8:45 [PATCH v3 1/6] ARM: zynqmp: dts: mark power domain as dummy Ahmad Fatoum
2025-12-01 8:45 ` [PATCH v3 2/6] ARM: rpi: make power domain optional Ahmad Fatoum
2025-12-01 8:45 ` [PATCH v3 3/6] pmdomain: add Rockchip power domain support Ahmad Fatoum
2025-12-01 8:45 ` [PATCH v3 4/6] of: add proper driver for simple-pm-bus Ahmad Fatoum
2025-12-01 8:45 ` [PATCH v3 5/6] pmdomain: warn if deep probe enabled and driver missing Ahmad Fatoum
2025-12-01 8:45 ` Ahmad Fatoum [this message]
2025-12-01 10:49 ` [PATCH v3 1/6] ARM: zynqmp: dts: mark power domain as dummy Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251201084737.1270303-6-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox