diff options
author | 2021-08-18 13:40:13 -0600 | |
---|---|---|
committer | 2021-08-18 22:33:27 +0200 | |
commit | 42ff700f3112babac129f4ae33023a7b7ce40a29 (patch) | |
tree | 2fbfed12e4189ff4da8b8b12fc0dca6068c3375e /include/linux/coresight.h | |
parent | coresight: syscfg: Initial coresight system configuration (diff) | |
download | linux-42ff700f3112babac129f4ae33023a7b7ce40a29.tar.gz linux-42ff700f3112babac129f4ae33023a7b7ce40a29.tar.bz2 linux-42ff700f3112babac129f4ae33023a7b7ce40a29.zip |
coresight: syscfg: Add registration and feature loading for cs devices
API for individual devices to register with the syscfg management
system is added.
Devices register with matching information, and any features or
configurations that match will be loaded into the device.
The feature and configuration loading is extended so that on load these
are loaded into any currently registered devices. This allows
configuration loading after devices have been registered.
Link: https://lore.kernel.org/r/20210723165444.1048-3-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-3-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/coresight.h')
-rw-r--r-- | include/linux/coresight.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h index 85008a65e21f..16544ae2b532 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -220,6 +220,9 @@ struct coresight_sysfs_link { * @nr_links: number of sysfs links created to other components from this * device. These will appear in the "connections" group. * @has_conns_grp: Have added a "connections" group for sysfs links. + * @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. */ struct coresight_device { struct coresight_platform_data *pdata; @@ -241,6 +244,10 @@ struct coresight_device { int nr_links; bool has_conns_grp; bool ect_enabled; /* true only if associated ect device is enabled */ + /* system configuration and feature lists */ + struct list_head feature_csdev_list; + struct list_head config_csdev_list; + spinlock_t cscfg_csdev_lock; }; /* |