提交 5a1d6d17 编写于 作者: M Mark Brown

regmap: debugfs: Fix check for block start in cached seeks

Check for the block we were asked to start from, not the position we're
in.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 120f8051
......@@ -103,7 +103,7 @@ static unsigned int regmap_debugfs_get_dump_start(struct regmap *map,
/* Find the relevant block */
list_for_each_entry(c, &map->debugfs_off_cache, list) {
if (*pos >= c->min && *pos <= c->max) {
if (from >= c->min && from <= c->max) {
*pos = c->min;
return c->base_reg;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册