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

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

Merge remote-tracking branch 'regmap/fix/raw' into regmap-linus

parents b3959b5c 9a16ea90
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2184,6 +2184,11 @@ int regmap_raw_read(struct regmap *map, unsigned int reg, void *val,

	if (regmap_volatile_range(map, reg, val_count) || map->cache_bypass ||
	    map->cache_type == REGCACHE_NONE) {
		if (!map->bus->read) {
			ret = -ENOTSUPP;
			goto out;
		}

		/* Physical block read if there's no cache involved */
		ret = _regmap_raw_read(map, reg, val, val_len);