[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250317232426.952188-1-robh@kernel.org>
Date: Mon, 17 Mar 2025 18:24:20 -0500
From: "Rob Herring (Arm)" <robh@...nel.org>
To: Saravana Kannan <saravanak@...gle.com>,
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>,
Patrice Chotard <patrice.chotard@...s.st.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>
Cc: devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-remoteproc@...r.kernel.org,
imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org,
linux-arm-msm@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com
Subject: [PATCH 0/3] of: Common "memory-region" parsing
While there's a common function to parse "memory-region" properties for
DMA pool regions, there's not anything for driver private regions. As a
result, drivers have resorted to parsing "memory-region" properties
themselves repeating the same pattern over and over. To fix this, this
series adds 2 functions to handle those cases:
of_reserved_mem_region_to_resource() and of_reserved_mem_region_count().
I've converted the whole tree, but just including remoteproc here as
it has the most cases. I intend to apply the first 2 patches for 6.15
so the driver conversions can be applied for 6.16.
A git tree with all the drivers converted is here[1].
[1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git dt/memory-region
Rob Herring (Arm) (3):
of: reserved_mem: Add functions to parse "memory-region"
of: Simplify of_dma_set_restricted_buffer() to use
of_for_each_phandle()
remoteproc: Use of_reserved_mem_region_* functions for "memory-region"
drivers/of/device.c | 34 ++++------
drivers/of/of_reserved_mem.c | 77 +++++++++++++++++++++++
drivers/remoteproc/imx_dsp_rproc.c | 44 +++++--------
drivers/remoteproc/imx_rproc.c | 65 ++++++++-----------
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 | 36 +++++------
drivers/remoteproc/st_remoteproc.c | 39 +++++-------
drivers/remoteproc/stm32_rproc.c | 42 ++++++-------
drivers/remoteproc/ti_k3_dsp_remoteproc.c | 28 ++++-----
drivers/remoteproc/ti_k3_m4_remoteproc.c | 28 ++++-----
drivers/remoteproc/ti_k3_r5_remoteproc.c | 28 ++++-----
drivers/remoteproc/xlnx_r5_remoteproc.c | 49 +++++----------
include/linux/of_reserved_mem.h | 26 ++++++++
17 files changed, 329 insertions(+), 368 deletions(-)
--
2.47.2
Powered by blists - more mailing lists