From 9b133dd20131867cb320c575d7d7991e52a7fe23 Mon Sep 17 00:00:00 2001 From: Narendra Muppalla Date: Wed, 28 Oct 2020 11:36:18 -0700 Subject: [PATCH] disp: msm: dsi: add dsi ramdump support without DEBUG_FS This change adds dsi display ramdump support when DEBUG_FS is not enabled. Change-Id: Ic6659a9380acd5eb55a3270d3e3b7016a9cd2bd7 Signed-off-by: Narendra Muppalla --- msm/dsi/dsi_ctrl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/msm/dsi/dsi_ctrl.c b/msm/dsi/dsi_ctrl.c index 385ddaa0e0..9b85d92332 100644 --- a/msm/dsi/dsi_ctrl.c +++ b/msm/dsi/dsi_ctrl.c @@ -348,6 +348,13 @@ static int dsi_ctrl_debugfs_deinit(struct dsi_ctrl *dsi_ctrl) static int dsi_ctrl_debugfs_init(struct dsi_ctrl *dsi_ctrl, struct dentry *parent) { + char dbg_name[DSI_DEBUG_NAME_LEN]; + + snprintf(dbg_name, DSI_DEBUG_NAME_LEN, "dsi%d_ctrl", + dsi_ctrl->cell_index); + sde_dbg_reg_register_base(dbg_name, + dsi_ctrl->hw.base, + msm_iomap_size(dsi_ctrl->pdev, "dsi_ctrl")); return 0; } static int dsi_ctrl_debugfs_deinit(struct dsi_ctrl *dsi_ctrl)