]> git.ipfire.org Git - thirdparty/linux.git/commit
remoteproc: Use of_reserved_mem_region_* functions for "memory-region"
authorRob Herring (Arm) <robh@kernel.org>
Mon, 24 Nov 2025 18:27:47 +0000 (12:27 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 25 Nov 2025 15:34:31 +0000 (08:34 -0700)
commit67a7bc7f0358bf619d314b5b6c1f06b35931f12c
treec8b95afe5b06647fa9279d0fb2d1eba22a3309d8
parent6f880e7bd103c38d583326f176db8aae8c8b71c2
remoteproc: Use of_reserved_mem_region_* functions for "memory-region"

Use the newly added of_reserved_mem_region_to_resource() and
of_reserved_mem_region_count() functions to handle "memory-region"
properties.

The error handling is a bit different in some cases. Often
"memory-region" is optional, so failed lookup is not an error. But then
an error in of_reserved_mem_lookup() is treated as an error. However,
that distinction is not really important. Either the region is available
and usable or it is not. So now, it is just
of_reserved_mem_region_to_resource() which is checked for an error.

Acked-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Tested-by: Peng Fan <peng.fan@nxp.com> # i.MX93-11x11-EVK for imx_rproc.c
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> # rcar
Tested-by: Beleswar Padhi <b-padhi@ti.com> # TI
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20251124182751.507624-1-robh@kernel.org
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c
drivers/remoteproc/imx_rproc.c
drivers/remoteproc/rcar_rproc.c
drivers/remoteproc/st_remoteproc.c
drivers/remoteproc/stm32_rproc.c
drivers/remoteproc/ti_k3_common.c
drivers/remoteproc/xlnx_r5_remoteproc.c