Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regmap: Use locking during kunit tests

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>

-2
-2
drivers/base/regmap/regmap-kunit.c
··· 151 151 struct reg_default *defaults; 152 152 153 153 config->cache_type = param->cache; 154 - config->disable_locking = config->cache_type == REGCACHE_RBTREE || 155 - config->cache_type == REGCACHE_MAPLE; 156 154 157 155 if (config->max_register == 0) { 158 156 config->max_register = param->from_reg;