diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-06 18:02:06 +0000 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-03-05 08:00:01 -0800 |
commit | 671b929941787fe45ad812aabacb283d186217dc (patch) | |
tree | fa62387480fb87755347cd8ccd767d679a5010fc /drivers/base/regmap | |
parent | baa725e95f8a63df2bb7de735af5c62179cd3357 (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>
(cherry picked from commit 028a01e601487b5991b70dba506dfe87d83543f6)
Change-Id: I2b5297143ea8c81477a5124c7db0e6683fd56255
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87588
Diffstat (limited to 'drivers/base/regmap')
-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) debugfs_create_file("access", 0400, map->debugfs, map, ®map_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) |