diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-17 09:05:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-18 09:04:33 +0200 |
commit | 493962d75286b080bc43c26661c56bc0d63bbdb8 (patch) | |
tree | 09c35b25b0ebf3dd4dcd3dd04ee68e1bff850b50 /common | |
parent | 0d0a472821b28aa999fb8e71ff949a87cb4f27b0 (diff) | |
download | barebox-493962d75286b080bc43c26661c56bc0d63bbdb8.tar.gz barebox-493962d75286b080bc43c26661c56bc0d63bbdb8.tar.xz |
of: fix reproducible node name for legacy vs. new partition binding
the of_reproducible_name mechanism is used to find a partition node
from the barebox devicetree in the Linux devicetree. Unfortunately
we have two different partition bindings. In the legacy one the partition
nodes are directly under the hardware devicenode whereas in the new
binding the partitions are under an additional partitions subnode.
This means we get two different (not so) reproducible names when
the barebox devicetree uses the legacy binding and the Linux devicetree
uses the new binding (or the other way round). To get the same
name then for these cases we drop the partitions subnode from the
reproducible name.
This makes the partition fixup in barebox-state work when the barebox
devicetree uses another binding than the Linux devicetree.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Tested-by: Gavin Schenk <g.schenk@eckelmann.de
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions