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

Commit 994f5db6 authored by Mark Brown's avatar Mark Brown
Browse files

regcache: Make sure we sync register 0 in an rbtree cache



Most of the current users have register 0 as a volatile register or don't
have a register 0 so it's not been apparent that it's not getting synced.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 19694b5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -377,7 +377,7 @@ static int regcache_rbtree_sync(struct regmap *map)

			/* Is this the hardware default?  If so skip. */
			ret = regcache_lookup_reg(map, i);
			if (ret > 0 && val == map->reg_defaults[ret].def)
			if (ret >= 0 && val == map->reg_defaults[ret].def)
				continue;

			map->cache_bypass = 1;