浏览代码

disp: msm: fix register offset logging with debugfs register access

The register offsets are decremented instead of incrementing during
the logging of registers through the debugfs option. Fix it to be
incremental to help in debugging.

Change-Id: Iefc98c40143554fa7169ff220793431d774f57ce
Signed-off-by: Veera Sundaram Sankaran <[email protected]>
Veera Sundaram Sankaran 2 年之前
父节点
当前提交
be07875590
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      msm/sde_dbg.c

+ 2 - 2
msm/sde_dbg.c

@@ -2434,10 +2434,10 @@ static ssize_t sde_dbg_reg_base_reg_read(struct file *file,
 
 
 			if (cur_offset == 0) {
 			if (cur_offset == 0) {
 				tot += scnprintf(dbg->buf + tot, dbg->buf_len - tot,
 				tot += scnprintf(dbg->buf + tot, dbg->buf_len - tot,
-					"0x%08x:", ((int) dbg->off) - cur_offset);
+					"0x%08x:", ((int) dbg->off) + cur_offset);
 			} else if (!(cur_offset % ROW_BYTES)) { // Header
 			} else if (!(cur_offset % ROW_BYTES)) { // Header
 				tot += scnprintf(dbg->buf + tot, dbg->buf_len - tot,
 				tot += scnprintf(dbg->buf + tot, dbg->buf_len - tot,
-					"\n0x%08x:", ((int) dbg->off) - cur_offset);
+					"\n0x%08x:", ((int) dbg->off) + cur_offset);
 			}
 			}
 
 
 			reg_val = SDE_REG_READ(&c, cur_offset);
 			reg_val = SDE_REG_READ(&c, cur_offset);