Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b92be6fe authored by Mark Brown's avatar Mark Brown
Browse files

regmap: core: Cache all registers by default when cache is enabled



Currently all register maps with a cache need to provide a volatile
callback since the default is to assume all registers are volatile.
This is not sensible if we have a cache so change the default to be
fully cached if a cache is provided.

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent d683b96b
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -123,6 +123,9 @@ bool regmap_volatile(struct regmap *map, unsigned int reg)
	if (map->volatile_table)
	if (map->volatile_table)
		return _regmap_check_range_table(map, reg, map->volatile_table);
		return _regmap_check_range_table(map, reg, map->volatile_table);


	if (map->cache_ops)
		return false;
	else
		return true;
		return true;
}
}