mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
coresight: syscfg: Add API to activate and enable configurations
Configurations are first activated, then when any coresight device is enabled, the active configurations are checked and any matching one is enabled. This patch provides the activation / enable API. Link: https://lore.kernel.org/r/20210723165444.1048-6-mike.leach@linaro.org Signed-off-by: Mike Leach <mike.leach@linaro.org> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Link: https://lore.kernel.org/r/20210818194022.379573-6-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
94d2bac540
commit
f8cce2ff3c
@@ -223,6 +223,7 @@ struct coresight_sysfs_link {
|
||||
* @feature_csdev_list: List of complex feature programming added to the device.
|
||||
* @config_csdev_list: List of system configurations added to the device.
|
||||
* @cscfg_csdev_lock: Protect the lists of configurations and features.
|
||||
* @active_cscfg_ctxt: Context information for current active system configuration.
|
||||
*/
|
||||
struct coresight_device {
|
||||
struct coresight_platform_data *pdata;
|
||||
@@ -248,6 +249,7 @@ struct coresight_device {
|
||||
struct list_head feature_csdev_list;
|
||||
struct list_head config_csdev_list;
|
||||
spinlock_t cscfg_csdev_lock;
|
||||
void *active_cscfg_ctxt;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user