[PATCH 2/5] remoteproc: imx_rproc: Make detach operation platform-specific
Daniel Baluta
daniel.baluta at gmail.com
Thu Sep 18 05:36:33 PDT 2025
On Thu, Sep 18, 2025 at 2:52 PM Peng Fan <peng.fan at nxp.com> wrote:
>
> Refactor the detach logic to support platform-specific implementations via
> the dcfg->ops->detach callback. Allow finer control over detach behavior
> depending on the remote processor management method, and make it easier
> to add detach support for new SoCs.
>
> The previous hardcoded SCU API detach logic is now moved into a dedicated
> imx_rproc_scu_api_detach() function, and registered via the plat ops
> structure. The generic imx_rproc_detach() now delegates to the
> platform-specific handler if available.
>
> Also, the dcfg->method check with IMX_RPROC_SCU_API is removed.
>
> No functional changes.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta at nxp.com>
More information about the linux-arm-kernel
mailing list