OSDN Git Service

regmap: Disable locking for RBTREE and MAPLE unit tests
authorGuenter Roeck <linux@roeck-us.net>
Thu, 20 Jul 2023 03:28:47 +0000 (20:28 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 20 Jul 2023 12:57:01 +0000 (13:57 +0100)
commita9e26169cfda651802f88262a315146fbe4bc74c
tree9b66d33fd9d2bac0d3c4bfd12320c9995108a992
parentb460a52257b1f5299ca70b7d1bb32442d3ce7bf6
regmap: Disable locking for RBTREE and MAPLE unit tests

REGCACHE_RBTREE and REGCACHE_MAPLE dynamically allocate memory
for regmap operations. This is incompatible with spinlock based locking
which is used for fast_io operations. Disable locking for the associated
unit tests to avoid lockdep splashes.

Fixes: f033c26de5a5 ("regmap: Add maple tree based register cache")
Fixes: 2238959b6ad2 ("regmap: Add some basic kunit tests")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230720032848.1306349-1-linux@roeck-us.net
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-kunit.c