dm: core: Deal with __symbols__ in devicetree
PATCH 1/1 dm: core: Deal with __symbols__ in devicetree
This node is 'special' and doesn't have a compatible string. Deal with it is as a special case.
Reported-by Sahaj Sarup <[email protected]>
Signed-off-by Simon Glass <[email protected]>
---
drivers/core/root.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/core/root.c +4 -0
@@ -13,6 +13,7 @@#include <fdtdec.h> #include <log.h> #include <malloc.h> +#include <spl.h> #include <asm-generic/sections.h> #include <asm/global_data.h> #include <linux/libfdt.h>
@@ -285,6 +286,9 @@ static int dm_scan_fdt_node(struct udevice *parent, ofnode parent_node,pr_debug (" - ignoring disabled device\n" );continue ; } +if (spl_phase () >PHASE_SPL && + !strcmp ("__symbols__" , node_name)) +continue ; err =lists_bind_fdt (parent, node,NULL ,NULL , pre_reloc_only);if (err && !ret) { ret = err;
Signature · 1 line
2.41.0.255.g8b1d071c50-goog
Hi,
Quoted 34 lines · Simon Glass
This node is 'special' and doesn't have a compatible string. Deal with it is as a special case.
Reported-by Sahaj Sarup <[email protected]>Signed-off-by Simon Glass <[email protected]>---
drivers/core/root.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/core/root.c +4
-1@@ -13,6 +13,7 @@#include <fdtdec.h> #include <log.h> #include <malloc.h> +#include <spl.h> #include <asm-generic/sections.h> #include <asm/global_data.h> #include <linux/libfdt.h> @@ -285,6 +286,9 @@ static int dm_scan_fdt_node(struct udevice *parent, ofnode parent_node,pr_debug (" - ignoring disabled device\n" );continue ; } +if (spl_phase () >PHASE_SPL && + !strcmp ("__symbols__" , node_name)) +continue ; err =lists_bind_fdt (parent, node,NULL ,NULL , pre_reloc_only);if (err && !ret) { ret = err; --
Quoted 2 lines
2.41.0.255.g8b1d071c50-goog
Does this fix the problem that was reported?
Regards,
Simon