summaryrefslogtreecommitdiffstats
path: root/common/bootchooser.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-10-17 09:05:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-10-18 09:04:33 +0200
commit493962d75286b080bc43c26661c56bc0d63bbdb8 (patch)
tree09c35b25b0ebf3dd4dcd3dd04ee68e1bff850b50 /common/bootchooser.c
parent0d0a472821b28aa999fb8e71ff949a87cb4f27b0 (diff)
downloadbarebox-493962d75286b080bc43c26661c56bc0d63bbdb8.tar.gz
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/bootchooser.c')
0 files changed, 0 insertions, 0 deletions