Thread (11 messages) 11 messages, 4 authors, 2025-10-30

RE: [PATCH 2/4] remoteproc: imx_rproc: Add runtime ops copy to support dynamic behavior

From: Peng Fan <peng.fan@nxp.com>
Date: 2025-10-30 11:12:37
Also in: imx, linux-devicetree, linux-remoteproc, lkml

Hi Daniel,
Subject: Re: [PATCH 2/4] remoteproc: imx_rproc: Add runtime ops
copy to support dynamic behavior

Hi Peng,

One comment.

quoted
@@ -116,6 +116,7 @@ struct imx_rproc {
        u32                             entry;          /* cpu start address */
        u32                             core_index;
        struct dev_pm_domain_list       *pd_list;
+       struct imx_rproc_plat_ops       ops;
 };
Here do you plan to change a member of the ops table at runtime?
Like e.g replace just the start ops? Or the entire table.

Because it would be better to add something like this:
Need to change start/stop/prepare, no need change detect_mode.
But it should be ok to change to const pointer per your suggestion.

I will follow this in next version.

Thanks,
Peng.
quoted hunk ↗ jump to hunk
--- a/drivers/remoteproc/imx_rproc.c
+++ b/drivers/remoteproc/imx_rproc.c
@@ -116,7 +116,7 @@ struct imx_rproc {
        u32                             entry;          /* cpu start address */
        u32                             core_index;
        struct dev_pm_domain_list       *pd_list;
-       struct imx_rproc_plat_ops       ops;
+       const struct imx_rproc_plat_ops       *ops;
 };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help