On Thu, Sep 05, 2019 at 12:51:37PM +0200, Michael Tretter wrote: > The devicetree overlay support is based on the Linux driver for device > tree overlays, but many features that are not required in Barebox are > left out. > > Unlike Linux, which applies the overlay to the live devicetree, Barebox > registers a fixup for the overlay which is applied with other fixups to > whatever tree is fixed. This is necessary to apply the overlay to > devicetrees that are passed to Linux, which might differ from the > devicetree that is currently live in Barebox. Even though we usually apply the overlay as a fixup I would expect some (exported) function to apply this overlay to that devicetree *now*. > + ret = of_property_read_string(fragment, "target-path", &path); > + if (!ret) { > + node = of_find_node_by_path_from(root, path); > + if (!node) > + pr_err("fragment %pOF: path '%s' not found\n", > + fragment, path); > + return node; > + } > + > + pr_err("fragment %pOF: no target property\n", fragment); You use pr_* functions, so please also add a pr_fmt to give the messages some more context. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox