* [PATCH] sandbox: hostfile: keep "syscon" compatible on the stickypage
@ 2026-10-02 12:34 Ahmad Fatoum
2026-10-15 8:25 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2026-10-02 12:34 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
The stickypage is described as "barebox,stickypage", "syscon", but the
fixup that turns it into a hostfile node replaces the whole compatible
list with just "barebox,hostfile". Nothing can look it up as a syscon
afterwards, so children like a syscon-reboot-mode would fail with
-EINVAL despite the DT saying otherwise.
Let's keep the "syscon" compatible when rewriting the node.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/sandbox/board/hostfile.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index de63ab5a9118..0ad0f76b4210 100644
--- a/arch/sandbox/board/hostfile.c
+++ b/arch/sandbox/board/hostfile.c
@@ -263,7 +263,8 @@ static int of_hostfile_map_fixup(struct device_node *root, void *ctx)
}
of_property_write_string(node, "barebox,filename", filename);
- of_property_write_string(node, "compatible", "barebox,hostfile");
+ of_property_write_strings(node, "compatible", "barebox,hostfile",
+ "syscon", NULL);
}
for_each_compatible_node_from(node, root, NULL, "barebox,hostfile") {
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sandbox: hostfile: keep "syscon" compatible on the stickypage
2026-10-02 12:34 [PATCH] sandbox: hostfile: keep "syscon" compatible on the stickypage Ahmad Fatoum
@ 2026-10-15 8:25 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-10-15 8:25 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Fri, 02 Oct 2026 14:34:10 +0200, Ahmad Fatoum wrote:
> The stickypage is described as "barebox,stickypage", "syscon", but the
> fixup that turns it into a hostfile node replaces the whole compatible
> list with just "barebox,hostfile". Nothing can look it up as a syscon
> afterwards, so children like a syscon-reboot-mode would fail with
> -EINVAL despite the DT saying otherwise.
>
> Let's keep the "syscon" compatible when rewriting the node.
>
> [...]
Applied, thanks!
[1/1] sandbox: hostfile: keep "syscon" compatible on the stickypage
https://git.pengutronix.de/cgit/barebox/commit/?id=dd19ae5718fd (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-15 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-02 12:34 [PATCH] sandbox: hostfile: keep "syscon" compatible on the stickypage Ahmad Fatoum
2026-10-15 8:25 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox