Skip to content

Commit fabe32c

Browse files
committed
regmap: kunit: Fix marking of the range window as volatile
For some reason the regmap used for testing ranges was not including the end of the range of paged registers as volatile since it found the end by counting from the selector register rather than the base of the window. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20231023-regmap-test-window-cache-v1-1-d8a71f441968@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d360185 commit fabe32c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/regmap/regmap-kunit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static struct regmap_range_cfg test_range = {
445445
static bool test_range_volatile(struct device *dev, unsigned int reg)
446446
{
447447
if (reg >= test_range.window_start &&
448-
reg <= test_range.selector_reg + test_range.window_len)
448+
reg <= test_range.window_start + test_range.window_len)
449449
return true;
450450

451451
if (reg >= test_range.range_min && reg <= test_range.range_max)

0 commit comments

Comments
 (0)