]> git.baikalelectronics.ru Git - kernel.git/commit
of: overlay: loosen overly strict phandle clash check
authorFrank Rowand <frank.rowand@sony.com>
Tue, 17 Oct 2017 23:36:28 +0000 (16:36 -0700)
committerRob Herring <robh@kernel.org>
Wed, 18 Oct 2017 01:47:22 +0000 (20:47 -0500)
commit355cacb8abe6be09e0df7e66ea94fb5ef1500ad1
tree6bf7e5ef0c213f6d0fd4728a9fc8eea1fb29f24a
parentc2ae9dffc49f9936b45c063514230d42c92648af
of: overlay: loosen overly strict phandle clash check

When an overlay contains a node that already exists in
the live device tree, the overlay node is not allowed
to change the phandle of the existing node.

The existing check refused to allow an overlay node to
set the node phandle even when the existing node did
not have a phandle.  Relax the check to allow an
overlay node to set the phandle value if the existing
node does not have a phandle.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/overlay.c