mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
feb7ac457c
Today of_address_to_resource() is called only in
ofnode_read_resource() for livetree support and
fdt_get_resource() is called when livetree is not supported.
The fdt_get_resource() doesn't do the address translation
so when it is required, but the address translation is done
by ofnode_read_resource() caller, for example in
drivers/firmware/scmi/smt.c::scmi_dt_get_smt_buffer() {
...
ret = ofnode_read_resource(args.node, 0, &resource);
if (ret)
return ret;
faddr = cpu_to_fdt32(resource.start);
paddr = ofnode_translate_address(args.node, &faddr);
...
The both behavior should be aligned and the address translation
must be called in fdt_get_resource() and removed for each caller.
Fixes:
|
||
---|---|---|
.. | ||
felix_switch.c | ||
jr2_switch.c | ||
Kconfig | ||
luton_switch.c | ||
Makefile | ||
mscc_mac_table.c | ||
mscc_mac_table.h | ||
mscc_miim.c | ||
mscc_miim.h | ||
mscc_xfer.c | ||
mscc_xfer.h | ||
ocelot_switch.c | ||
serval_switch.c | ||
servalt_switch.c |