diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-23 22:05:59 +0000 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-04-15 13:33:55 -0700 |
commit | 24dbfb8fceed820307da57a185440a967956d547 (patch) | |
tree | b9edeaa7729ae5df221c463160b90c8ee25f3070 /drivers/base | |
parent | 01b30d0d2ab37eec4a5232e4fcf02716662830a3 (diff) |
regmap: Mark the cache as clean after a successful sync
Previously the cache would never be marked clean, meaning syncs would
never be suppressed which isn't the end of the world but could be
inefficient.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 6ff7373809a9b4eb644d83e2e299da297e1cbffa)
Change-Id: I52aef73bc6bc0df10dd64da92d0bf591e44ddc0e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96487
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regcache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 156e2a56de44..c38ee81393e6 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c @@ -287,6 +287,9 @@ int regcache_sync(struct regmap *map) ret = map->cache_ops->sync(map); + if (ret == 0) + map->cache_dirty = false; + out: trace_regcache_sync(map->dev, name, "stop"); /* Restore the bypass state */ |