]> git.ipfire.org Git - thirdparty/linux.git/commit
remoteproc: imx_dsp_rproc: Simplify IMX_RPROC_SCU_API switch case
authorPeng Fan <peng.fan@nxp.com>
Wed, 19 Nov 2025 04:21:54 +0000 (12:21 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 19 Nov 2025 16:13:58 +0000 (09:13 -0700)
commitd5eb4d512fb70a6c85bb5a1ec8c6b642f45c518f
treec1ab2d031f414aa023e5503c210aea038c645043
parent9f356d1277343861810c1e762742cf383b639a3a
remoteproc: imx_dsp_rproc: Simplify IMX_RPROC_SCU_API switch case

Introduce imx_dsp_rproc_scu_api_{start, stop, detect_mode}() helper
functions for i.MX variants using IMX_RPROC_SCU_API to manage remote
processors.

Allows the removal of the IMX_RPROC_SCU_API switch-case blocks from
imx_dsp_rproc_[start,stop,detect_mode](), resulting in cleaner and more
maintainable code.

No functional changes.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Tested-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20251119-imx-dsp-2025-11-19-v4-9-adafd342d07b@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c
drivers/remoteproc/imx_rproc.h