summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/coresight/coresight-syscfg.h
diff options
context:
space:
mode:
authorMike Leach <mike.leach@linaro.org>2021-11-24 23:00:35 +0300
committerMathieu Poirier <mathieu.poirier@linaro.org>2021-11-26 21:28:09 +0300
commiteb2ec49606c2a02d6382d56a0e19f34e515fde3f (patch)
treed14f7ac0c4d2e9c9721e116c984b0400c15f5c98 /drivers/hwtracing/coresight/coresight-syscfg.h
parent02bd588e12df405bdf55244708151b7f238b79ba (diff)
downloadlinux-eb2ec49606c2a02d6382d56a0e19f34e515fde3f.tar.xz
coresight: syscfg: Update load API for config loadable modules
CoreSight configurations and features can be added as kernel loadable modules. This patch updates the load owner API to ensure that the module cannot be unloaded either: 1) if the config it supplies is in use 2) if the module is not the last in the load order list. Signed-off-by: Mike Leach <mike.leach@linaro.org> Link: https://lore.kernel.org/r/20211124200038.28662-4-mike.leach@linaro.org Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-syscfg.h')
-rw-r--r--drivers/hwtracing/coresight/coresight-syscfg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwtracing/coresight/coresight-syscfg.h b/drivers/hwtracing/coresight/coresight-syscfg.h
index e2b2bdab31aa..1da37874f70f 100644
--- a/drivers/hwtracing/coresight/coresight-syscfg.h
+++ b/drivers/hwtracing/coresight/coresight-syscfg.h
@@ -61,6 +61,7 @@ struct cscfg_registered_csdev {
/* owner types for loading and unloading of config and feature sets */
enum cscfg_load_owner_type {
CSCFG_OWNER_PRELOAD,
+ CSCFG_OWNER_MODULE,
};
/**