Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes

From
Rob Herring <robh@kernel.org>
Date
2021-01-26 14:36:07
Also in
linux-devicetree
Reply to
Chris Packham, 2021-01-26
On Mon, Jan 25, 2021 at 8:50 PM Chris Packham
[off-list ref] wrote:
Hi Rob,

On 26/01/21 3:39 pm, Rob Herring wrote:
quoted
Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
Non-existent nodes would mistaken get created with a leading '/'. The
problem was fdt_path_offset() takes a full path while creating a node
with fdt_add_subnode() takes just the basename.

Since this we only add root child nodes, we can just skip over the '/'.

Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Qi Zheng <redacted>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Rob Herring <robh@kernel.org>
Thanks for the quick patch. It doesn't quite seem to work as my system
can't find it's initrd (it can with my other hacky patch). It does seem
to get the command line info as I'm getting printk output.
That doesn't make sense. Can you enable debug in drivers/of/fdt.c.

Rob

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (6 messages) 6 messages, 2 authors, last reply 2021-01-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help