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

Commit d6814a7d authored by Mark Brown's avatar Mark Brown Committed by Mark Brown
Browse files

regmap: debugfs: Suppress cache for partial register files



The cache is based on the full register map so confuses things if used
for a partial map.

Reported-by: default avatarBard Liao <bardliao@realtek.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent d856fce4
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -84,6 +84,10 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
	unsigned int fpos_offset;
	unsigned int fpos_offset;
	unsigned int reg_offset;
	unsigned int reg_offset;


	/* Suppress the cache if we're using a subrange */
	if (from)
		return from;

	/*
	/*
	 * If we don't have a cache build one so we don't have to do a
	 * If we don't have a cache build one so we don't have to do a
	 * linear scan each time.
	 * linear scan each time.