of: unittest: allow base devicetree to have symbol metadata
authorFrank Rowand <frank.rowand@sony.com>
Sat, 13 Oct 2018 02:38:26 +0000 (19:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:14:12 +0000 (09:14 +0100)
commit6aa04c8e8bbcc8aafd4d5fdbdef646eb871d5cde
tree9a0fbf2d1a8eba922be02ea25fadf3e6d88decfc
parent9f49ba339b3af5b0a833178b2529c6b9873f7e6f
of: unittest: allow base devicetree to have symbol metadata

[ Upstream commit 5babefb7f7ab1f23861336d511cc666fa45ede82 ]

The overlay metadata nodes in the FDT created from testcases.dts
are not handled properly.

The __fixups__ and __local_fixups__ node were added to the live
devicetree, but should not be.

Only the first property in the /__symbols__ node was added to the
live devicetree if the live devicetree already contained a
/__symbols node.  All of the node's properties must be added.

Tested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/of/unittest.c