提交 6ff73738 编写于 作者: M Mark Brown

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: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 c3ec2328
......@@ -285,6 +285,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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册