u-boot/drivers/firmware
Patrick Delaunay feb7ac457c dm: core: Add address translation in fdt_get_resource
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: a44810123f ("dm: core: Add dev_read_resource() to read device resources")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
2021-04-29 03:23:39 -07:00
..
scmi dm: core: Add address translation in fdt_get_resource 2021-04-29 03:23:39 -07:00
firmware-sandbox.c dm: test: Add "/firmware" node scan test 2018-09-29 11:49:35 -06:00
firmware-uclass.c dm: test: Add "/firmware" node scan test 2018-09-29 11:49:35 -06:00
firmware-zynqmp.c firmware: zynqmp: Swap addr_hi/low when PM_FPGA_LOAD is called 2020-10-27 08:13:31 +01:00
Kconfig firmware: add SCMI agent uclass 2020-09-30 11:55:23 -04:00
Makefile firmware: add SCMI agent uclass 2020-09-30 11:55:23 -04:00
psci.c psci: add features/reset2 support 2021-04-20 07:31:12 -04:00
ti_sci.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
ti_sci.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00