Преглед на файлове

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) {
 				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
 				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);