[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6lbathmvpjxdvcnhtncxclcdro7nv6gjwkvznnpv5zrbh2lcde@qw3gjj5lp7ev>
Date: Wed, 20 Aug 2025 03:50:24 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
To: "Rob Herring (Arm)" <robh@...nel.org>
Cc: Bjorn Andersson <andersson@...nel.org>,
Mathieu Poirier <mathieu.poirier@...aro.org>,
Shawn Guo <shawnguo@...nel.org>, Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Magnus Damm <magnus.damm@...il.com>,
Patrice Chotard <patrice.chotard@...s.st.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Arnaud Pouliquen <arnaud.pouliquen@...s.st.com>,
Peng Fan <peng.fan@....com>, linux-remoteproc@...r.kernel.org,
imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-renesas-soc@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com
Subject: Re: [PATCH v5] remoteproc: Use of_reserved_mem_region_* functions
for "memory-region"
On Tue, Aug 19, 2025 at 04:38:27PM -0500, 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@...s.st.com>
> Tested-by: Peng Fan <peng.fan@....com> # i.MX93-11x11-EVK for imx_rproc.c
> Reviewed-by: Geert Uytterhoeven <geert+renesas@...der.be> # rcar
> Signed-off-by: Rob Herring (Arm) <robh@...nel.org>
> ---
> v5:
> - Drop some inadvertent whitespace changes in qcom_q6v5_pas.c and ti_k3.
> - Fix error handling in adsp_alloc_memory_region()
> - Drop unreachable returns after 'while (1)' loops
>
> v4:
> - Rebase on v6.17-rc1. qcom_q6v5_pas.c conflicted needing s/adsp/pas/
>
> v3:
> - Rebase on v6.16-rc1. Move TI K3 changes to new common file.
> - Fix double increment of "i" in xlnx_r5
>
> v2:
> - Use strstarts instead of strcmp for resource names as they include
> the unit-address.
> - Drop the unit-address from resource name for imx and st drivers
> ---
> drivers/remoteproc/imx_dsp_rproc.c | 47 +++++++----------
> drivers/remoteproc/imx_rproc.c | 70 ++++++++++---------------
> drivers/remoteproc/qcom_q6v5_adsp.c | 24 ++++-----
> drivers/remoteproc/qcom_q6v5_mss.c | 60 +++++++--------------
> drivers/remoteproc/qcom_q6v5_pas.c | 69 +++++++++---------------
> drivers/remoteproc/qcom_q6v5_wcss.c | 25 ++++-----
> drivers/remoteproc/qcom_wcnss.c | 23 ++++----
> drivers/remoteproc/rcar_rproc.c | 38 +++++---------
> drivers/remoteproc/st_remoteproc.c | 41 +++++++--------
> drivers/remoteproc/stm32_rproc.c | 46 +++++++---------
> drivers/remoteproc/ti_k3_common.c | 28 ++++------
> drivers/remoteproc/xlnx_r5_remoteproc.c | 53 +++++++------------
> 12 files changed, 199 insertions(+), 325 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com> # msm
--
With best wishes
Dmitry
Powered by blists - more mailing lists