Skip to content

Commit

Permalink
regmap: debugfs: Suppress cache for partial register files
Browse files Browse the repository at this point in the history
The cache is based on the full register map so confuses things if used
for a partial map.

Reported-by: Bard Liao <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Jun 19, 2013
1 parent d856fce commit d6814a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/base/regmap/regmap-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
unsigned int fpos_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
* linear scan each time.
Expand Down

0 comments on commit d6814a7

Please sign in to comment.