|
@@ -273,6 +273,7 @@ int regcache_sync(struct regmap *map)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
/* Apply any patch first */
|
|
/* Apply any patch first */
|
|
|
|
+ map->cache_bypass = 1;
|
|
for (i = 0; i < map->patch_regs; i++) {
|
|
for (i = 0; i < map->patch_regs; i++) {
|
|
ret = _regmap_write(map, map->patch[i].reg, map->patch[i].def);
|
|
ret = _regmap_write(map, map->patch[i].reg, map->patch[i].def);
|
|
if (ret != 0) {
|
|
if (ret != 0) {
|
|
@@ -281,6 +282,7 @@ int regcache_sync(struct regmap *map)
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ map->cache_bypass = 0;
|
|
|
|
|
|
if (map->cache_ops->sync) {
|
|
if (map->cache_ops->sync) {
|
|
ret = map->cache_ops->sync(map);
|
|
ret = map->cache_ops->sync(map);
|