]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: imx_rproc: Simplify clock enable logic using dcfg flags
authorPeng Fan <peng.fan@nxp.com>
Fri, 24 Oct 2025 02:51:28 +0000 (10:51 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 24 Oct 2025 14:45:41 +0000 (08:45 -0600)
commitddbec021a3e5ddd38c89516c30b53ab747824207
tree809eba67ab5cbc893471dc0a068b57262d4c8c61
parent8fd705c5e72776c2f1a0212bdedcb9a9753b5bce
remoteproc: imx_rproc: Simplify clock enable logic using dcfg flags

Simplify the clock enable logic by removing the dedicated
imx_rproc_clk_enable() function and integrate the clock handling directly
into the probe function to simplify the code.

Add a new IMX_RPROC_NEED_CLKS flag in dcfg to indicate whether clock
management is required for a given SoC. Update probe logic to conditionally
enable clocks based on the new flag.

Set the flag for applicable SoCs (e.g., i.MX7D, i.MX8MQ, i.MX93, etc.).

No functional changes.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20251024-imx_rproc_c4-v4-1-af83ed3fdbba@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_rproc.c
drivers/remoteproc/imx_rproc.h