coresight: syscfg: Update load API for config loadable modules
authorMike Leach <mike.leach@linaro.org>
Wed, 24 Nov 2021 20:00:35 +0000 (20:00 +0000)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 26 Nov 2021 18:28:09 +0000 (11:28 -0700)
commiteb2ec49606c2a02d6382d56a0e19f34e515fde3f
treed14f7ac0c4d2e9c9721e116c984b0400c15f5c98
parent02bd588e12df405bdf55244708151b7f238b79ba
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>
drivers/hwtracing/coresight/coresight-syscfg.c
drivers/hwtracing/coresight/coresight-syscfg.h