]> www.infradead.org Git - users/dwmw2/linux.git/commit
regmap: kunit: Add coverage of spinlocked regmaps
authorMark Brown <broonie@kernel.org>
Sun, 1 Sep 2024 11:06:14 +0000 (12:06 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Sep 2024 11:56:16 +0000 (12:56 +0100)
commitc7edb7ac8472a57e0c56a3a95796db3af98b2383
tree5a3966b2c13dcc085f8590808aae24c4cd0d8681
parentae0acef3822ed8908e83cd24f337891e6be64eba
regmap: kunit: Add coverage of spinlocked regmaps

By default regmap uses a mutex to protect the regmap but we also support
other kinds of locking, including spinlocks, which can have an impact
especially around allocations. Ensure that we are covering the spinlock
case by running tests configured using fast I/O, this causes the core to
use a spinlock instead of a mutex. Running every single test would be
redundant but cover most of them.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240901-regmap-test-fast-io-v1-1-aad83a871bcc@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-kunit.c