* [PATCH master 1/2] dma: fix fixup warning for SoCs without /soc node
@ 2025-01-16 14:11 Ahmad Fatoum
2025-01-16 14:11 ` [PATCH master 2/2] kbuild: remove stale references to README Ahmad Fatoum
2025-01-21 8:22 ` [PATCH master 1/2] dma: fix fixup warning for SoCs without /soc node Sascha Hauer
0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-01-16 14:11 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
For SoCs without a /soc node, any DMA coherency fixups happen at the
device tree root. The root's full name is an empty string in barebox, so
this expectedly fails.
Handle this case specially.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/dma/of_fixups.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/of_fixups.c b/drivers/dma/of_fixups.c
index 084ab94cc71c..7377c508cfda 100644
--- a/drivers/dma/of_fixups.c
+++ b/drivers/dma/of_fixups.c
@@ -16,7 +16,8 @@ static int of_dma_coherent_fixup(struct device_node *root, void *data)
else
coherency = DEV_DMA_COHERENCE_DEFAULT;
- soc_kernel = of_find_node_by_path_from(root, soc_bb->full_name);
+ soc_kernel = of_find_node_by_path_from(root,
+ *soc_bb->full_name ? soc_bb->full_name : "/");
if (!soc_kernel)
return -ENOENT;
--
2.39.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH master 2/2] kbuild: remove stale references to README
2025-01-16 14:11 [PATCH master 1/2] dma: fix fixup warning for SoCs without /soc node Ahmad Fatoum
@ 2025-01-16 14:11 ` Ahmad Fatoum
2025-01-21 8:22 ` [PATCH master 1/2] dma: fix fixup warning for SoCs without /soc node Sascha Hauer
1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-01-16 14:11 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
We have a README.rst file now, but it's better to just point at the
documentation for further information about how to build barebox.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 9a2fdf0c68d2..3de35d3a34cc 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ NAME = None
# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
-# More info can be located in ./README
+# More info can be located in the documentation.
# Comments in this file are targeted only to the developer, do not
# expect to learn how to build the kernel reading this file.
@@ -1355,7 +1355,7 @@ endif
@echo ' make C=2 [targets] Force check of all c source with $$CHECK'
@echo ''
@echo 'Execute "make" or "make all" to build all targets marked with [*] '
- @echo 'For further info see the ./README file'
+ @echo 'For further info see the documentation'
# Generate tags for editors
# ---------------------------------------------------------------------------
--
2.39.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH master 1/2] dma: fix fixup warning for SoCs without /soc node
2025-01-16 14:11 [PATCH master 1/2] dma: fix fixup warning for SoCs without /soc node Ahmad Fatoum
2025-01-16 14:11 ` [PATCH master 2/2] kbuild: remove stale references to README Ahmad Fatoum
@ 2025-01-21 8:22 ` Sascha Hauer
1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2025-01-21 8:22 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Thu, 16 Jan 2025 15:11:47 +0100, Ahmad Fatoum wrote:
> For SoCs without a /soc node, any DMA coherency fixups happen at the
> device tree root. The root's full name is an empty string in barebox, so
> this expectedly fails.
>
> Handle this case specially.
>
>
> [...]
Applied, thanks!
[1/2] dma: fix fixup warning for SoCs without /soc node
https://git.pengutronix.de/cgit/barebox/commit/?id=599fac02a837 (link may not be stable)
[2/2] kbuild: remove stale references to README
https://git.pengutronix.de/cgit/barebox/commit/?id=da7191a3fd74 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-21 8:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-16 14:11 [PATCH master 1/2] dma: fix fixup warning for SoCs without /soc node Ahmad Fatoum
2025-01-16 14:11 ` [PATCH master 2/2] kbuild: remove stale references to README Ahmad Fatoum
2025-01-21 8:22 ` [PATCH master 1/2] dma: fix fixup warning for SoCs without /soc node Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox