projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd4ebc0
)
regmap: Use locking during kunit tests
author
Mark Brown
<broonie@kernel.org>
Thu, 22 Aug 2024 19:13:37 +0000
(20:13 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/regmap/regmap-kunit.c
b/drivers/base/regmap/regmap-kunit.c
index d790c7df5cac0eee382704dfeb6e50e7ab01d0ea..b80b447c87a2a2df9cff6b4e2d66067624f20268 100644
(file)
--- a/
drivers/base/regmap/regmap-kunit.c
+++ b/
drivers/base/regmap/regmap-kunit.c
@@
-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;