diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-29 15:54:54 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-19 10:18:09 +0100 |
commit | d6814a7dafa590ec5fe0597922ea76354f9bec59 (patch) | |
tree | 552ba2bc6296e19f710e91a8649fa632d1c056cb /drivers/base/regmap | |
parent | d856fce41b74ecf2004d99f781e44abd7815d7f8 (diff) | |
download | op-kernel-dev-d6814a7dafa590ec5fe0597922ea76354f9bec59.zip op-kernel-dev-d6814a7dafa590ec5fe0597922ea76354f9bec59.tar.gz |
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: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/regmap-debugfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c index 23b701f5..6864009 100644 --- a/drivers/base/regmap/regmap-debugfs.c +++ b/drivers/base/regmap/regmap-debugfs.c @@ -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. |