u-boot-brain/drivers/firmware/scmi
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
..
Kconfig firmware: scmi: support Arm SMCCC transport 2020-09-30 11:55:23 -04:00
Makefile firmware: scmi: sandbox test for SCMI clocks 2020-09-30 11:55:23 -04:00
mailbox_agent.c scmi: cosmetic: reorder include files 2021-03-11 17:03:19 +01:00
sandbox-scmi_agent.c firmware: scmi: fix inline comments and minor coding style issues 2021-04-12 17:17:11 -04:00
sandbox-scmi_devices.c firmware: scmi: sandbox test for voltage regulator 2021-04-12 17:17:11 -04:00
scmi_agent-uclass.c firmware: scmi: voltage regulator 2021-04-12 17:17:11 -04:00
smccc_agent.c scmi: define LOG_CATEGORY 2021-03-11 17:03:19 +01:00
smt.c dm: core: Add address translation in fdt_get_resource 2021-04-29 03:23:39 -07:00
smt.h firmware: scmi: mailbox/smt agent device 2020-09-30 11:55:23 -04:00