regmap: Add tracepoints for cache only and cache bypass
Useful for figuring out where the hardware interaction went or came from. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Этот коммит содержится в:
@@ -313,6 +313,7 @@ void regcache_cache_only(struct regmap *map, bool enable)
|
||||
mutex_lock(&map->lock);
|
||||
WARN_ON(map->cache_bypass && enable);
|
||||
map->cache_only = enable;
|
||||
trace_regmap_cache_only(map->dev, enable);
|
||||
mutex_unlock(&map->lock);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(regcache_cache_only);
|
||||
@@ -350,6 +351,7 @@ void regcache_cache_bypass(struct regmap *map, bool enable)
|
||||
mutex_lock(&map->lock);
|
||||
WARN_ON(map->cache_only && enable);
|
||||
map->cache_bypass = enable;
|
||||
trace_regmap_cache_bypass(map->dev, enable);
|
||||
mutex_unlock(&map->lock);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(regcache_cache_bypass);
|
||||
|
Ссылка в новой задаче
Block a user