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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d360185 commit fabe32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)