disp: msm: fix dsi debugbus in-mem logging

Update the dump_mem pointer offset while storing the debugbus
data for the second DSI to avoid overwriting to same memory.
As part of the change, register the DSI ctrl with sde_dbg from
ctrl_init directly, instead of debugfs_init to avoid code replication.

Change-Id: I4089f3038ffa89136eaea956d27270f638a99043
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
Šī revīzija ir iekļauta:
Veera Sundaram Sankaran
2021-04-27 15:56:02 -07:00
vecāks 7b6e6f3955
revīzija 179a858272
2 mainīti faili ar 9 papildinājumiem un 14 dzēšanām

Parādīt failu

@@ -959,6 +959,8 @@ static void _sde_dbg_dump_dsi_dbg_bus(struct sde_dbg_sde_debug_bus *bus, u32 ena
_sde_dbg_dump_bus_entry(bus, entries, bus_size, ctl_entry->base,
dump_addr, enable_mask);
if (dump_addr)
dump_addr += list_size / (sizeof(u32) * dsi_count);
}
mutex_unlock(&sde_dbg_dsi_mutex);