Skip to content

coresight: Fix missing AMBA dev_pm_ops and modernize PM ops

Eric Chan linux-arm-kernel lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2coresight: Add missing dev_pm_ops to AMBA driversdrivers/hwtracing/coresight/coresight-catu.c drivers/hwtracing/coresight/coresight-etm4x-core.c drivers/hwtracing/coresight/coresight-tmc-core.c+34 -310 replies
2/2coresight: Switch to DEFINE_RUNTIME_DEV_PM_OPS()drivers/hwtracing/coresight/coresight-catu.c drivers/hwtracing/coresight/coresight-etm4x-core.c drivers/hwtracing/coresight/coresight-tmc-core.c+13 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] coresight: Fix missing AMBA dev_pm_ops and modernize PM ops

This 2-patch series addresses an issue where CoreSight AMBA drivers (TMC, CATU, and ETM4x) missed setting their dev_pm_ops during earlier ACPI and platform driver refactorings, and modernizes runtime PM ops definitions across these drivers to align with Documentation/power/runtime_pm.rst.

- Patch 1 is a bug fix (marked for stable) that sets the missing .pm pointer in the AMBA drivers (tmc_driver, catu_driver, and etm4x_amba_driver) so runtime PM suspend and resume callbacks are properly invoked when probed via AMBA bus.
- Patch 2 modernizes the runtime PM definitions across TMC, CATU, and ETM4x to use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr(), eliminating unnecessary #ifdef CONFIG_PM blocks.

Eric Chan (2):
coresight: Add missing dev_pm_ops to AMBA drivers
coresight: Switch to DEFINE_RUNTIME_DEV_PM_OPS()

 drivers/hwtracing/coresight/coresight-catu.c  | 31 +++++++++--------
 .../coresight/coresight-etm4x-core.c          | 30 ++++++++---------
 .../hwtracing/coresight/coresight-tmc-core.c  | 33 +++++++++----------
 3 files changed, 44 insertions(+), 50 deletions(-)
Signature · 1 line
2.55.0.1003.g10538fe699-goog