summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/regcache-rbtree.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-07-24 00:34:06 +0200
committerMark Brown <broonie@kernel.org>2023-07-24 00:34:06 +0200
commit9c214af0bd0f43df214470a35bc38dd5602b666f (patch)
treee95ac46b8fdca90a122b73eac96158985d85ef70 /drivers/base/regmap/regcache-rbtree.c
parentregmap: Remove dynamic allocation warnings for rbtree and maple (diff)
parentLinux 6.5-rc3 (diff)
downloadlinux-9c214af0bd0f43df214470a35bc38dd5602b666f.tar.xz
linux-9c214af0bd0f43df214470a35bc38dd5602b666f.zip
regmap: Merge up fixes from mainline
There's several things here that will really help my CI.
Diffstat (limited to 'drivers/base/regmap/regcache-rbtree.c')
-rw-r--r--drivers/base/regmap/regcache-rbtree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c
index ae6b8788d5f3..06788965aa29 100644
--- a/drivers/base/regmap/regcache-rbtree.c
+++ b/drivers/base/regmap/regcache-rbtree.c
@@ -471,6 +471,8 @@ static int regcache_rbtree_sync(struct regmap *map, unsigned int min,
unsigned int start, end;
int ret;
+ map->async = true;
+
rbtree_ctx = map->cache;
for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) {
rbnode = rb_entry(node, struct regcache_rbtree_node, node);
@@ -499,6 +501,8 @@ static int regcache_rbtree_sync(struct regmap *map, unsigned int min,
return ret;
}
+ map->async = false;
+
return regmap_async_complete(map);
}