]> Gentwo Git Trees - linux/.git/commit
remoteproc: imx_rproc: Simplify IMX_RPROC_MMIO switch case
authorPeng Fan <peng.fan@nxp.com>
Wed, 10 Sep 2025 07:11:47 +0000 (15:11 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 15 Sep 2025 16:03:02 +0000 (10:03 -0600)
commite14168bf3493aa86dcca1eb2666318a61b450b18
tree262809d6115f775324482243d86910bf40e04c24
parent11a8d3cb4c624a2b29e2fa1d8b5046f69b71b40f
remoteproc: imx_rproc: Simplify IMX_RPROC_MMIO switch case

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

This allows the removal of the IMX_RPROC_MMIO switch-case blocks from
imx_rproc_start(), imx_rproc_stop(), and imx_rproc_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>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20250910-imx-rproc-cleanup-v2-3-10386685b8a9@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_rproc.c