diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-10-16 12:15:44 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-18 09:02:24 +0200 |
commit | 7e497d48acbd1184e3f6bd23bd16dfae84dd1129 (patch) | |
tree | 11dc4a3a34a1f14514c4c8d95e29ffd8fea689cf /MAKEALL | |
parent | c41dfceb951b795357a014205faebac2853f7c02 (diff) | |
download | barebox-7e497d48acbd1184e3f6bd23bd16dfae84dd1129.tar.gz barebox-7e497d48acbd1184e3f6bd23bd16dfae84dd1129.tar.xz |
of: Port latest of_device_make_bus_id() implementation
Code implementing of_device_make_bus_id() in Barebox uses rather old
implementation from Linux kernel and has a very significan limitation
in that it will produce identical names for different DT nodes that
happen to have the same node name as well as "reg" property.
One such example, that tirggered this change, is "switch@0" nodes that
can be found in dts/src/arm/vf610-zii-dev-rev-c.dts
This commit replaces original code with the current Linux kernel
implementation that traverses DT hierarchy from leaf node to its root
concatenating node names in the process.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'MAKEALL')
0 files changed, 0 insertions, 0 deletions