Good day, This is the second part we were hoping for, i.e CoreSight modularisation, and a fix for a copy/paste error in the context save/restore process. Please consider for the next merge window.
Applies on top of your "char-misc-next" branch. Thanks, Mathieu Kim Phillips (8): coresight: Use IS_ENABLED for CONFIGs that may be modules coresight: etm3x: Allow etm3x to be built as a module coresight: etm4x: Allow etm4x to be built as a module coresight: etb: Allow etb to be built as a module coresight: tpiu: Allow tpiu to be built as a module coresight: tmc: Allow tmc to be built as a module coresight: funnel: Allow funnel driver to be built as module coresight: replicator: Allow replicator driver to be built as module Mian Yousaf Kaukab (2): coresight: Export global symbols coresight: tmc-etr: Add function to register catu ops Mike Leach (2): coresight: cti: Fix remove sysfs link error coresight: cti: Fix bug clearing sysfs links on callback Sai Prakash Ranjan (1): coresight: etm4x: Fix save and restore of TRCVMIDCCTLR1 register Tingwei Zhang (12): coresight: cpu_debug: Add module name in Kconfig coresight: cpu_debug: Define MODULE_DEVICE_TABLE coresight: Add coresight prefix to barrier_pkt coresight: Add try_get_module() in coresight_grab_device() coresight: stm: Allow to build coresight-stm as a module coresight: etm: perf: Fix warning caused by etm_setup_aux failure coresight: cti: Add function to register cti associate ops coresight: cti: Don't disable ect device if it's not enabled coresight: cti: Increase reference count when enabling cti coresight: cti: Allow cti to be built as a module coresight: catu: Allow catu drivers to be built as modules coresight: core: Allow the coresight core driver to be built as a module drivers/hwtracing/coresight/Kconfig | 54 ++++-- drivers/hwtracing/coresight/Makefile | 26 +-- drivers/hwtracing/coresight/coresight-catu.c | 37 ++++- drivers/hwtracing/coresight/coresight-catu.h | 2 - .../{coresight.c => coresight-core.c} | 154 +++++++++++++++--- .../hwtracing/coresight/coresight-cpu-debug.c | 2 + .../{coresight-cti.c => coresight-cti-core.c} | 67 ++++++-- drivers/hwtracing/coresight/coresight-etb10.c | 28 +++- .../hwtracing/coresight/coresight-etm-perf.c | 13 +- .../hwtracing/coresight/coresight-etm-perf.h | 5 +- ...resight-etm3x.c => coresight-etm3x-core.c} | 154 +++++++++++++----- ...resight-etm4x.c => coresight-etm4x-core.c} | 88 +++++++--- .../hwtracing/coresight/coresight-funnel.c | 65 +++++++- .../hwtracing/coresight/coresight-platform.c | 1 + drivers/hwtracing/coresight/coresight-priv.h | 23 ++- .../coresight/coresight-replicator.c | 65 +++++++- drivers/hwtracing/coresight/coresight-stm.c | 20 ++- drivers/hwtracing/coresight/coresight-sysfs.c | 2 + .../{coresight-tmc.c => coresight-tmc-core.c} | 25 ++- .../hwtracing/coresight/coresight-tmc-etf.c | 2 +- .../hwtracing/coresight/coresight-tmc-etr.c | 21 ++- drivers/hwtracing/coresight/coresight-tmc.h | 3 + drivers/hwtracing/coresight/coresight-tpiu.c | 20 ++- include/linux/coresight.h | 3 +- 24 files changed, 728 insertions(+), 152 deletions(-) rename drivers/hwtracing/coresight/{coresight.c => coresight-core.c} (92%) rename drivers/hwtracing/coresight/{coresight-cti.c => coresight-cti-core.c} (94%) rename drivers/hwtracing/coresight/{coresight-etm3x.c => coresight-etm3x-core.c} (90%) rename drivers/hwtracing/coresight/{coresight-etm4x.c => coresight-etm4x-core.c} (96%) rename drivers/hwtracing/coresight/{coresight-tmc.c => coresight-tmc-core.c} (95%) -- 2.25.1