diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-06 13:02:06 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-06 14:24:46 -0500 |
commit | 028a01e601487b5991b70dba506dfe87d83543f6 (patch) | |
tree | f92c3f85f5b6d1d95dbc2467289fdc5748707c8b /drivers/base/regmap/regmap-debugfs.c | |
parent | 847fb6fdf58c0ef4c207d2853a043a4da3db9c76 (diff) |
regmap: Add debugfs information for the cache status
Show all the cache status flags in debugfs if we have a cache.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/regmap-debugfs.c')
-rw-r--r-- | drivers/base/regmap/regmap-debugfs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c index 6f397476e27c..b3b4b8f7f409 100644 --- a/drivers/base/regmap/regmap-debugfs.c +++ b/drivers/base/regmap/regmap-debugfs.c | |||
@@ -192,6 +192,15 @@ void regmap_debugfs_init(struct regmap *map) | |||
192 | debugfs_create_file("access", 0400, map->debugfs, | 192 | debugfs_create_file("access", 0400, map->debugfs, |
193 | map, ®map_access_fops); | 193 | map, ®map_access_fops); |
194 | } | 194 | } |
195 | |||
196 | if (map->cache_type) { | ||
197 | debugfs_create_bool("cache_only", 0400, map->debugfs, | ||
198 | &map->cache_only); | ||
199 | debugfs_create_bool("cache_dirty", 0400, map->debugfs, | ||
200 | &map->cache_dirty); | ||
201 | debugfs_create_bool("cache_bypass", 0400, map->debugfs, | ||
202 | &map->cache_bypass); | ||
203 | } | ||
195 | } | 204 | } |
196 | 205 | ||
197 | void regmap_debugfs_exit(struct regmap *map) | 206 | void regmap_debugfs_exit(struct regmap *map) |