Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 33/42] drm: arcpgu: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 34/42] ASoC: mediatek: mt8173: " Mukesh Ojha
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the optional reserved memory region is released on device removal,
fixing a missing cleanup in the original code.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 drivers/gpu/drm/tiny/arcpgu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c
index c93d61ac0bb7..fa01407570a8 100644
--- a/drivers/gpu/drm/tiny/arcpgu.c
+++ b/drivers/gpu/drm/tiny/arcpgu.c
@@ -278,7 +278,7 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu)
 		 arc_pgu_read(arcpgu, ARCPGU_REG_ID));
 
 	/* Get the optional framebuffer memory resource */
-	ret = of_reserved_mem_device_init(drm->dev);
+	ret = devm_of_reserved_mem_device_init(drm->dev);
 	if (ret && ret != -ENODEV)
 		return ret;
 
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 34/42] ASoC: mediatek: mt8173: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
  2026-07-05 19:40 ` [PATCH 33/42] drm: arcpgu: Use devm_of_reserved_mem_device_init() Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 35/42] ASoC: mediatek: mt8186: " Mukesh Ojha
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing cleanup in the original code.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
index 69cadc91c97f..0424d79bc9b0 100644
--- a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
+++ b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
@@ -1072,7 +1072,7 @@ static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)
 
 	afe->dev = dev;
 
-	ret = of_reserved_mem_device_init(dev);
+	ret = devm_of_reserved_mem_device_init(dev);
 	if (ret) {
 		dev_info(dev, "no reserved memory found, pre-allocating buffers instead\n");
 		afe->preallocate_buffers = true;
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 35/42] ASoC: mediatek: mt8186: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
  2026-07-05 19:40 ` [PATCH 33/42] drm: arcpgu: Use devm_of_reserved_mem_device_init() Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 34/42] ASoC: mediatek: mt8173: " Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 36/42] ASoC: mediatek: mt8188: " Mukesh Ojha
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing cleanup in the original code.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 sound/soc/mediatek/mt8186/mt8186-afe-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/mediatek/mt8186/mt8186-afe-pcm.c b/sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
index 44a521c3a610..60576f885acd 100644
--- a/sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
+++ b/sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
@@ -2836,7 +2836,7 @@ static int mt8186_afe_pcm_dev_probe(struct platform_device *pdev)
 	afe_priv = afe->platform_priv;
 	afe->dev = &pdev->dev;
 
-	ret = of_reserved_mem_device_init(dev);
+	ret = devm_of_reserved_mem_device_init(dev);
 	if (ret) {
 		dev_info(dev, "no reserved memory found, pre-allocating buffers instead\n");
 		afe->preallocate_buffers = true;
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 36/42] ASoC: mediatek: mt8188: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
                   ` (2 preceding siblings ...)
  2026-07-05 19:40 ` [PATCH 35/42] ASoC: mediatek: mt8186: " Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 37/42] ASoC: mediatek: mt8195: " Mukesh Ojha
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing cleanup in the original code.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
index 7b1f5d05f4d6..ab4ce5e86b9d 100644
--- a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
+++ b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
@@ -3199,7 +3199,7 @@ static int mt8188_afe_pcm_dev_probe(struct platform_device *pdev)
 	struct regmap *infra_ao;
 	int i, irq_id, ret;
 
-	ret = of_reserved_mem_device_init(dev);
+	ret = devm_of_reserved_mem_device_init(dev);
 	if (ret)
 		dev_dbg(dev, "failed to assign memory region: %d\n", ret);
 
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 37/42] ASoC: mediatek: mt8195: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
                   ` (3 preceding siblings ...)
  2026-07-05 19:40 ` [PATCH 36/42] ASoC: mediatek: mt8188: " Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 38/42] ASoC: SOF: mediatek: mt8186: " Mukesh Ojha
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing cleanup in the original code.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c b/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
index bc0a63457cd7..52c3381e6766 100644
--- a/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
+++ b/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c
@@ -3013,7 +3013,7 @@ static int mt8195_afe_pcm_dev_probe(struct platform_device *pdev)
 	struct reset_control *rstc;
 	int i, irq_id, ret;
 
-	ret = of_reserved_mem_device_init(dev);
+	ret = devm_of_reserved_mem_device_init(dev);
 	if (ret)
 		return dev_err_probe(dev, ret, "failed to assign memory region\n");
 
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 38/42] ASoC: SOF: mediatek: mt8186: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
                   ` (4 preceding siblings ...)
  2026-07-05 19:40 ` [PATCH 37/42] ASoC: mediatek: mt8195: " Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 39/42] ASoC: SOF: mediatek: mt8195: " Mukesh Ojha
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing cleanup in the original code.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
index c1bea967737d..a5ccee87e684 100644
--- a/sound/soc/sof/mediatek/mt8186/mt8186.c
+++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
@@ -49,7 +49,7 @@ static int platform_parse_resource(struct platform_device *pdev, void *data)
 	struct mtk_adsp_chip_info *adsp = data;
 	int ret;
 
-	ret = of_reserved_mem_device_init(dev);
+	ret = devm_of_reserved_mem_device_init(dev);
 	if (ret) {
 		dev_err(dev, "of_reserved_mem_device_init failed\n");
 		return ret;
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 39/42] ASoC: SOF: mediatek: mt8195: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
                   ` (5 preceding siblings ...)
  2026-07-05 19:40 ` [PATCH 38/42] ASoC: SOF: mediatek: mt8186: " Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 40/42] misc: fastrpc: " Mukesh Ojha
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing cleanup in the original code.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 sound/soc/sof/mediatek/mt8195/mt8195.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sof/mediatek/mt8195/mt8195.c b/sound/soc/sof/mediatek/mt8195/mt8195.c
index 4d6e9300a9c0..e4b6b6c18e02 100644
--- a/sound/soc/sof/mediatek/mt8195/mt8195.c
+++ b/sound/soc/sof/mediatek/mt8195/mt8195.c
@@ -49,7 +49,7 @@ static int platform_parse_resource(struct platform_device *pdev, void *data)
 	struct mtk_adsp_chip_info *adsp = data;
 	int ret;
 
-	ret = of_reserved_mem_device_init(dev);
+	ret = devm_of_reserved_mem_device_init(dev);
 	if (ret) {
 		dev_err(dev, "of_reserved_mem_device_init failed\n");
 		return ret;
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 40/42] misc: fastrpc: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
                   ` (6 preceding siblings ...)
  2026-07-05 19:40 ` [PATCH 39/42] ASoC: SOF: mediatek: mt8195: " Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-06  4:55   ` Ekansh Gupta
  2026-07-05 19:40 ` [PATCH 41/42] ASoC: fsl: imx-rpmsg: Use devm_of_reserved_mem_device_init_by_idx() Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 42/42] ASoC: sprd: Use devm_of_reserved_mem_device_init() Mukesh Ojha
  9 siblings, 1 reply; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing of_reserved_mem_device_release() in fastrpc_rpmsg_remove().

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 drivers/misc/fastrpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
index d86e79134c68..c4e05b0db527 100644
--- a/drivers/misc/fastrpc.c
+++ b/drivers/misc/fastrpc.c
@@ -2396,7 +2396,7 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev)
 		return -EINVAL;
 	}
 
-	if (of_reserved_mem_device_init_by_idx(rdev, rdev->of_node, 0))
+	if (devm_of_reserved_mem_device_init(rdev))
 		dev_info(rdev, "no reserved DMA memory for FASTRPC\n");
 
 	vmcount = of_property_read_variable_u32_array(rdev->of_node,
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 41/42] ASoC: fsl: imx-rpmsg: Use devm_of_reserved_mem_device_init_by_idx()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
                   ` (7 preceding siblings ...)
  2026-07-05 19:40 ` [PATCH 40/42] misc: fastrpc: " Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  2026-07-05 19:40 ` [PATCH 42/42] ASoC: sprd: Use devm_of_reserved_mem_device_init() Mukesh Ojha
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init_by_idx() to
ensure the reserved memory region is released on device removal, fixing
a missing cleanup — the driver has no remove function.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 sound/soc/fsl/imx-rpmsg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c
index 5f1af258caf2..f504d94c4f68 100644
--- a/sound/soc/fsl/imx-rpmsg.c
+++ b/sound/soc/fsl/imx-rpmsg.c
@@ -199,7 +199,7 @@ static int imx_rpmsg_probe(struct platform_device *pdev)
 		goto fail;
 	}
 
-	ret = of_reserved_mem_device_init_by_idx(&pdev->dev, np, 0);
+	ret = devm_of_reserved_mem_device_init_by_idx(&pdev->dev, np, 0);
 	if (ret)
 		dev_warn(&pdev->dev, "no reserved DMA memory\n");
 
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 42/42] ASoC: sprd: Use devm_of_reserved_mem_device_init()
       [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
                   ` (8 preceding siblings ...)
  2026-07-05 19:40 ` [PATCH 41/42] ASoC: fsl: imx-rpmsg: Use devm_of_reserved_mem_device_init_by_idx() Mukesh Ojha
@ 2026-07-05 19:40 ` Mukesh Ojha
  9 siblings, 0 replies; 11+ messages in thread
From: Mukesh Ojha @ 2026-07-05 19:40 UTC (permalink / raw)
  To: devicetree, dri-devel, imx, linux-arm-kernel, linux-arm-msm,
	linux-aspeed, linux-kernel, linux-media, linux-mediatek,
	linux-mmc, linux-remoteproc, linux-sound, linux-staging,
	linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware
  Cc: Konrad Dybcio, Mukesh Ojha

Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing cleanup — the driver has no remove function. Also drop the
now-unused local variable np.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
 sound/soc/sprd/sprd-pcm-dma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/sprd/sprd-pcm-dma.c b/sound/soc/sprd/sprd-pcm-dma.c
index cbf5bf82d96e..220f55d475af 100644
--- a/sound/soc/sprd/sprd-pcm-dma.c
+++ b/sound/soc/sprd/sprd-pcm-dma.c
@@ -459,10 +459,9 @@ static const struct snd_soc_component_driver sprd_soc_component = {
 
 static int sprd_soc_platform_probe(struct platform_device *pdev)
 {
-	struct device_node *np = pdev->dev.of_node;
 	int ret;
 
-	ret = of_reserved_mem_device_init_by_idx(&pdev->dev, np, 0);
+	ret = devm_of_reserved_mem_device_init(&pdev->dev);
 	if (ret)
 		dev_warn(&pdev->dev,
 			 "no reserved DMA memory for audio platform device\n");
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 40/42] misc: fastrpc: Use devm_of_reserved_mem_device_init()
  2026-07-05 19:40 ` [PATCH 40/42] misc: fastrpc: " Mukesh Ojha
@ 2026-07-06  4:55   ` Ekansh Gupta
  0 siblings, 0 replies; 11+ messages in thread
From: Ekansh Gupta @ 2026-07-06  4:55 UTC (permalink / raw)
  To: Mukesh Ojha, devicetree, dri-devel, imx, linux-arm-kernel,
	linux-arm-msm, linux-aspeed, linux-kernel, linux-media,
	linux-mediatek, linux-mmc, linux-remoteproc, linux-sound,
	linux-staging, linux-sunxi, linux-tegra, linuxppc-dev, openbmc,
	sound-open-firmware, Srinivas Kandagatla
  Cc: Konrad Dybcio

On 06-07-2026 01:10, Mukesh Ojha wrote:
> Use the devres-managed devm_of_reserved_mem_device_init() to ensure
> the reserved memory region is released on device removal, fixing a
> missing of_reserved_mem_device_release() in fastrpc_rpmsg_remove().
nit: I see this change is also fixing fastrpc_rpmsg_probe() early
failure leaks as well as -EPROBE_DEFER retry paths which could be added
to the commit message.

Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
> 
> Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
> ---
>  drivers/misc/fastrpc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
> index d86e79134c68..c4e05b0db527 100644
> --- a/drivers/misc/fastrpc.c
> +++ b/drivers/misc/fastrpc.c
> @@ -2396,7 +2396,7 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev)
>  		return -EINVAL;
>  	}
>  
> -	if (of_reserved_mem_device_init_by_idx(rdev, rdev->of_node, 0))
> +	if (devm_of_reserved_mem_device_init(rdev))
>  		dev_info(rdev, "no reserved DMA memory for FASTRPC\n");
>  
>  	vmcount = of_property_read_variable_u32_array(rdev->of_node,



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-07-06  5:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
2026-07-05 19:40 ` [PATCH 33/42] drm: arcpgu: Use devm_of_reserved_mem_device_init() Mukesh Ojha
2026-07-05 19:40 ` [PATCH 34/42] ASoC: mediatek: mt8173: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 35/42] ASoC: mediatek: mt8186: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 36/42] ASoC: mediatek: mt8188: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 37/42] ASoC: mediatek: mt8195: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 38/42] ASoC: SOF: mediatek: mt8186: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 39/42] ASoC: SOF: mediatek: mt8195: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 40/42] misc: fastrpc: " Mukesh Ojha
2026-07-06  4:55   ` Ekansh Gupta
2026-07-05 19:40 ` [PATCH 41/42] ASoC: fsl: imx-rpmsg: Use devm_of_reserved_mem_device_init_by_idx() Mukesh Ojha
2026-07-05 19:40 ` [PATCH 42/42] ASoC: sprd: Use devm_of_reserved_mem_device_init() Mukesh Ojha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox