summaryrefslogtreecommitdiff
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-26 18:30:16 +0000
committerLokesh Pathak <lpathak@nvidia.com>2012-03-05 07:58:30 -0800
commit41d71e122ce866f7c38574fd109d578699105735 (patch)
tree0b82f3210d3400cd51fcc4acdd3dd7806b414de2 /drivers/base/regmap
parent89c982f86904a01c60dc9fee0cfb27cd3418d905 (diff)
regmap: Reset device debugfs when reinitialising the cache
Most of the data exposed via debugfs is for or from the cache so reset all the debugfs configuration to make sure everything is up to date with the latest configuration, especially if we're changing cache type. cherry-picked from mainline commit a24f64a648376766497fddd8bc24b1ca5b906431 Change-Id: I9db449602d9c37b22e024bf78a54fd7d09a07638 Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/87581
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index b4e6e97615f4..92e6e962eaad 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -278,6 +278,7 @@ int regmap_reinit_cache(struct regmap *map, const struct regmap_config *config)
mutex_lock(&map->lock);
regcache_exit(map);
+ regmap_debugfs_exit(map);
map->max_register = config->max_register;
map->writeable_reg = config->writeable_reg;
@@ -288,6 +289,7 @@ int regmap_reinit_cache(struct regmap *map, const struct regmap_config *config)
map->cache_bypass = false;
map->cache_only = false;
+ regmap_debugfs_init(map);
ret = regcache_init(map, config);