Commit 028a01e6 authored by Mark Brown's avatar Mark Brown

regmap: Add debugfs information for the cache status

Show all the cache status flags in debugfs if we have a cache.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 847fb6fd
...@@ -192,6 +192,15 @@ void regmap_debugfs_init(struct regmap *map) ...@@ -192,6 +192,15 @@ void regmap_debugfs_init(struct regmap *map)
debugfs_create_file("access", 0400, map->debugfs, debugfs_create_file("access", 0400, map->debugfs,
map, &regmap_access_fops); map, &regmap_access_fops);
} }
if (map->cache_type) {
debugfs_create_bool("cache_only", 0400, map->debugfs,
&map->cache_only);
debugfs_create_bool("cache_dirty", 0400, map->debugfs,
&map->cache_dirty);
debugfs_create_bool("cache_bypass", 0400, map->debugfs,
&map->cache_bypass);
}
} }
void regmap_debugfs_exit(struct regmap *map) void regmap_debugfs_exit(struct regmap *map)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment