]> Gentwo Git Trees - linux/.git/commit
remoteproc: imx_dsp_rproc: Simplify IMX_RPROC_MMIO switch case
authorPeng Fan <peng.fan@nxp.com>
Wed, 19 Nov 2025 04:21:53 +0000 (12:21 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 19 Nov 2025 16:12:46 +0000 (09:12 -0700)
commit9f356d1277343861810c1e762742cf383b639a3a
tree556aeea6b2a1806e42c553036022b5a1d6527740
parent66395eac5d557d76a599858f6b67f7bf8a84a005
remoteproc: imx_dsp_rproc: Simplify IMX_RPROC_MMIO switch case

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

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

No functional changes.

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@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-8-adafd342d07b@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c
drivers/remoteproc/imx_rproc.h