[PATCH v6] remoteproc: Use of_reserved_mem_region_* functions for "memory-region"

Beleswar Prasad Padhi b-padhi at ti.com
Wed Nov 19 00:02:18 PST 2025


On 31/10/25 23:29, Rob Herring (Arm) wrote:
> 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 at foss.st.com>
> Tested-by: Peng Fan <peng.fan at nxp.com> # i.MX93-11x11-EVK for imx_rproc.c
> Reviewed-by: Geert Uytterhoeven <geert+renesas at glider.be> # rcar
> Signed-off-by: Rob Herring (Arm) <robh at kernel.org>


All of the tests pass in our CI. Feel free to use:

Tested-by: Beleswar Padhi <b-padhi at ti.com> # TI

Thanks,
Beleswar


> ---
> v6:
>  - Rebase on v6.18-rc1
>  - The error in v5 was fixed in v6.17 commit aea70964b5a7
>    ("of: reserved_mem: Add missing IORESOURCE_MEM flag on resources")
>
> [...]



More information about the linux-arm-kernel mailing list