]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
regmap: Use locking during kunit tests
authorMark Brown <broonie@kernel.org>
Thu, 22 Aug 2024 19:13:37 +0000 (20:13 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 23 Aug 2024 10:03:12 +0000 (11:03 +0100)
There is no reason to bypass the locking when running the kunit tests,
leave it enabled as standard.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240822-b4-regmap-maple-nolock-v1-3-d5e6dbae3396@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-kunit.c

index d790c7df5cac0eee382704dfeb6e50e7ab01d0ea..b80b447c87a2a2df9cff6b4e2d66067624f20268 100644 (file)
@@ -151,8 +151,6 @@ static struct regmap *gen_regmap(struct kunit *test,
        struct reg_default *defaults;
 
        config->cache_type = param->cache;
-       config->disable_locking = config->cache_type == REGCACHE_RBTREE ||
-                                       config->cache_type == REGCACHE_MAPLE;
 
        if (config->max_register == 0) {
                config->max_register = param->from_reg;