Răsfoiți Sursa

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 ani în urmă
părinte
comite
be07875590
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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);