[PATCH v2 0/7] remoteproc: core: misc update

Peng Fan
2025-10-10T12:24:51Z

This patchset is a misc update of remoteproc_core.c.
Patch 1: Drop a pointless initialization to variable ret
Patch 2-3: Cleanup the included headers
Patch 4: Use cleanup.h to simplify code
Patch 5: Remove export of rproc_va_to_pa
Patch 6: Update stm32_rproc auto_boot assignment.
Patch 7: Use 1-bit bitfields for bool

I am also reviewing the rproc->lock usage and thinking whether we
need to add a lockdep_assert_held for some functions that should have
lock held. But not sure.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Changes in v2:
- Add patch 6 "remoteproc: stm32: Avoid directly taking address of auto_boot"
to address stm32_rproc.c build issue
- Link to v1: https://lore.kernel.org/r/20251005-remoteproc-cleanup-v1-0-09a9fdea0063@nxp.com

---
Peng Fan (7):
remoteproc: core: Drop redundant initialization of 'ret' in rproc_shutdown()
remoteproc: core: Sort header includes
remoteproc: core: Removed unused headers
remoteproc: core: Use cleanup.h macros to simplify lock handling
remoteproc: core: Remove unused export of rproc_va_to_pa
remoteproc: stm32: Avoid directly taking address of auto_boot
remoteproc: core: Consolidate bool flags into 1-bit bitfields

drivers/remoteproc/remoteproc_core.c | 144 ++++++++++++++---------------------
drivers/remoteproc/stm32_rproc.c | 5 +-
include/linux/remoteproc.h | 18 ++---
3 files changed, 71 insertions(+), 96 deletions(-)
---
base-commit: 3b9b1f8df454caa453c7fb07689064edb2eda90a
change-id: 20251003-remoteproc-cleanup-345cd50fe138

Best regards,
--
Peng Fan <peng.fan@nxp.com>