[PATCH v2 0/2] regmap: Initial KUnit coverage

From: Mark Brown
Date: Sun Mar 26 2023 - 10:11:54 EST


This series provides some initial KUnit coverage for regmap,
covering most of the interfaces that operate at the register
level using an instrumented RAM backed bus type.

Without the current regmap tree the paging tests will fail as the
RAM backed regmap doesn't support the required operations.

Changes in v2:
- Add a test for regcache_drop_region().
- Add a stress test for inserting registers into a sparse cache.
- Link to v1: https://lore.kernel.org/r/20230324-regmap-kunit-v1-0-62ef9cfa9b89@xxxxxxxxxx

Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
Mark Brown (2):
regmap: Add RAM backed register map
regmap: Add some basic kunit tests

drivers/base/regmap/Kconfig | 10 +
drivers/base/regmap/Makefile | 2 +
drivers/base/regmap/internal.h | 19 +
drivers/base/regmap/regmap-kunit.c | 736 +++++++++++++++++++++++++++++++++++++
drivers/base/regmap/regmap-ram.c | 85 +++++
5 files changed, 852 insertions(+)
---
base-commit: e8d018dd0257f744ca50a729e3d042cf2ec9da65
change-id: 20230324-regmap-kunit-bb3c3e81e35c

Best regards,
--
Mark Brown <broonie@xxxxxxxxxx>