regmap: kunit: add noinc write test
authorBen Wolsieffer <ben.wolsieffer@hefring.com>
Thu, 2 Nov 2023 20:30:39 +0000 (16:30 -0400)
committerMark Brown <broonie@kernel.org>
Mon, 13 Nov 2023 01:26:18 +0000 (01:26 +0000)
commitd958d97848a6604d024221920d300d07869715a2
tree39010da7aaefc869ac7a78b205f1db4c6615e119
parent02e3564a344064aca49f147e8a4eecbe5d3459fc
regmap: kunit: add noinc write test

Add a test for writing to a noinc register, which verifies that the
write does not touch adjacent registers. This test succeeds with [1]
applied and fails without it.

[1] 984a4afdc87a ("regmap: prevent noinc writes from clobbering cache")

Signed-off-by: Ben Wolsieffer <ben.wolsieffer@hefring.com>
Link: https://lore.kernel.org/r/20231102203039.3069305-2-ben.wolsieffer@hefring.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-kunit.c