* [PATCH v2] misc: fastrpc: Use devm_of_reserved_mem_device_init()
@ 2026-09-02 19:40 Mukesh Ojha
2026-09-03 6:33 ` Konrad Dybcio
0 siblings, 1 reply; 2+ messages in thread
From: Mukesh Ojha @ 2026-09-02 19:40 UTC (permalink / raw)
To: Srinivas Kandagatla, Arnd Bergmann, Greg Kroah-Hartman
Cc: Ekansh Gupta, linux-arm-msm, dri-devel, linux-kernel, 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().
Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
Changes in v2: https://lore.kernel.org/lkml/20260703193855.110619-2-mukesh.ojha@oss.qualcomm.com/
- Carried Reviewed-by tag.
- rebased it.
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 d4fac2caca86..ad248e12fe97 100644
--- a/drivers/misc/fastrpc.c
+++ b/drivers/misc/fastrpc.c
@@ -2558,7 +2558,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.55.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] misc: fastrpc: Use devm_of_reserved_mem_device_init()
2026-09-02 19:40 [PATCH v2] misc: fastrpc: Use devm_of_reserved_mem_device_init() Mukesh Ojha
@ 2026-09-03 6:33 ` Konrad Dybcio
0 siblings, 0 replies; 2+ messages in thread
From: Konrad Dybcio @ 2026-09-03 6:33 UTC (permalink / raw)
To: Mukesh Ojha, Srinivas Kandagatla, Arnd Bergmann, Greg Kroah-Hartman
Cc: Ekansh Gupta, linux-arm-msm, dri-devel, linux-kernel
On 9/2/26 9:40 PM, 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().
>
> Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
> Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-03 6:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-02 19:40 [PATCH v2] misc: fastrpc: Use devm_of_reserved_mem_device_init() Mukesh Ojha
2026-09-03 6:33 ` Konrad Dybcio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®