]> git.baikalelectronics.ru Git - kernel.git/commit
of: overlay: validate overlay properties #address-cells and #size-cells
authorFrank Rowand <frank.rowand@sony.com>
Fri, 5 Oct 2018 03:32:04 +0000 (20:32 -0700)
committerFrank Rowand <frank.rowand@sony.com>
Fri, 9 Nov 2018 06:11:32 +0000 (22:11 -0800)
commit190a3cbf0e8c3b6b016cd8851c08aa4bedc3ad3f
treec8c46a2f76a8ae4cab60f79ad6575deef7334787
parent7efbceb4ade03bfc5c905a1064c0372edcf42075
of: overlay: validate overlay properties #address-cells and #size-cells

If overlay properties #address-cells or #size-cells are already in
the live devicetree for any given node, then the values in the
overlay must match the values in the live tree.

If the properties are already in the live tree then there is no
need to create a changeset entry to add them since they must
have the same value.  This reduces the memory used by the
changeset and eliminates a possible memory leak.

Tested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
drivers/of/overlay.c
include/linux/of.h