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

From: Beleswar Prasad Padhi

Date: Wed Nov 19 2025 - 03:02:28 EST



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@xxxxxxxxxxx>
> Tested-by: Peng Fan <peng.fan@xxxxxxx> # i.MX93-11x11-EVK for imx_rproc.c
> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> # rcar
> Signed-off-by: Rob Herring (Arm) <robh@xxxxxxxxxx>


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

Tested-by: Beleswar Padhi <b-padhi@xxxxxx> # 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")
>
> [...]