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 <quic_veeras@quicinc.com>
This commit is contained in:

committato da
Gerrit - the friendly Code Review server

parent
5fce708923
commit
be07875590
@@ -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);
|
||||
|
Fai riferimento in un nuovo problema
Block a user