diff options
author | Mark Brown <broonie@kernel.org> | 2023-10-23 18:19:11 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-26 14:00:42 +0100 |
commit | fabe32cc1eca7857837abcb56b242bc4845b7067 (patch) | |
tree | ad0bfaef10f926331311f75dbb2948bec531dea5 /drivers/base | |
parent | d3601857e14de6369f00ae19564f1d817d175d19 (diff) | |
download | lwn-fabe32cc1eca7857837abcb56b242bc4845b7067.tar.gz lwn-fabe32cc1eca7857837abcb56b242bc4845b7067.zip |
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>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regmap-kunit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-kunit.c b/drivers/base/regmap/regmap-kunit.c index 264d29b3fced..f79fd5ec187e 100644 --- a/drivers/base/regmap/regmap-kunit.c +++ b/drivers/base/regmap/regmap-kunit.c @@ -445,7 +445,7 @@ static struct regmap_range_cfg test_range = { static bool test_range_volatile(struct device *dev, unsigned int reg) { if (reg >= test_range.window_start && - reg <= test_range.selector_reg + test_range.window_len) + reg <= test_range.window_start + test_range.window_len) return true; if (reg >= test_range.range_min && reg <= test_range.range_max) |