mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00
![]() During address translation #address/size-cells props are expected to apply to child nodes. However, devfdt_get_addr_index() incorrectly use the parent offset of the udevice parent instead of getting the offset of the node parent. This will work in most cases when there is only one udevice tied to a node. On e.g. an Orange Pi R1 Plus TLS board the dwc3-generic (parent) and dwc3-generic-host (child) udevice is tied to the same node. In that case both the offset and parent values end up being the same. As a result, the #address/size-cells props intended for child nodes incorrectly gets applied to the node itself resulting in wrong addr being returned, 0x0 instead of 0xff600000. The following can be seen on console: dwc3-generic-host usb@ff600000: this is not a DesignWare USB3 DRD Core dwc3-generic-host usb@ff600000: failed to initialize core Fix this by using the offset of the parent node and not the offset to the node the parent udevice is tied to. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> |
||
---|---|---|
.. | ||
acpi.c | ||
device-remove.c | ||
device.c | ||
devres.c | ||
dump.c | ||
fdtaddr.c | ||
Kconfig | ||
lists.c | ||
Makefile | ||
of_access.c | ||
of_addr.c | ||
of_extra.c | ||
ofnode.c | ||
read.c | ||
read_extra.c | ||
regmap.c | ||
root.c | ||
simple-bus.c | ||
simple-pm-bus.c | ||
syscon-uclass.c | ||
tag.c | ||
uclass.c | ||
util.c |