mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
77224320f0
The behaviour of dev_read_addr_size() is surprising as it does not handle #address-cells and #size-cells but instead hardcodes the values based on sizeof(fdt_addr_t). This is different from dev_read_addr_size_index() and dev_read_addr_size_name() both of which do read the cell sizes from the device tree. Since dev_read_addr_size() is only used by a single driver and this driver is broken when CONFIG_FDT_64BIT does not match the address size in the device tree, fix the function to behave like all of the other similarly named functions. Drop the property name argument as the only caller passes "reg" and this is the expected property name matching the other similarly named functions. Signed-off-by: John Keeping <john@metanate.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> # chromebook_jerry Tested-by: Simon Glass <sjg@chromium.org> # chromebook_bob |
||
---|---|---|
.. | ||
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 |