]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc19497d10f8e529c4870a63d1c95424fd707a5d9
treed14f7ac0c4d2e9c9721e116c984b0400c15f5c98
parent1ab53c9c91fb123e8ec425e1e657393fa45b6c05
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