Skip to content

Commit

Permalink
regmap: Add debugfs information for the cache status
Browse files Browse the repository at this point in the history
Show all the cache status flags in debugfs if we have a cache.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Feb 6, 2012
1 parent 847fb6f commit 028a01e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/base/regmap/regmap-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,15 @@ void regmap_debugfs_init(struct regmap *map)
debugfs_create_file("access", 0400, map->debugfs,
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)
Expand Down

0 comments on commit 028a01e

Please sign in to comment.