From bbaae6dfcce8e477e2375f63ba4b608991ad127a Mon Sep 17 00:00:00 2001 From: Bang Nguyen Date: Wed, 31 Jul 2019 13:28:18 -0500 Subject: [PATCH] disp: msm: dsi: Add print info for DSI_CTRL Add the DSI_CTRL index to indicate which DSI_CTRL is enable. Port from: 559a1c5 Change-Id: Id9a60c5cfcb5c4f7959c10987d85eb17062fa15e Signed-off-by: Bang Nguyen Reviewed-on: https://gerrit.mot.com/1444408 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1509811 Reviewed-by: Hua Tan --- msm/dsi/dsi_display.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index c00b635f3d70..b932ae11b92b 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -7433,6 +7433,7 @@ int dsi_display_prepare(struct dsi_display *display) { int rc = 0; struct dsi_display_mode *mode; + struct dsi_display_ctrl *ctrl = &display->ctrl[0]; if (!display) { DSI_ERR("Invalid params\n"); @@ -7444,7 +7445,9 @@ int dsi_display_prepare(struct dsi_display *display) return -EINVAL; } - DSI_INFO("%s(%s)+\n", __func__, display->drm_conn->name); + DSI_INFO("panel_name=%s ctrl-index=%d\n", + display->panel->name, ctrl->ctrl->cell_index); + SDE_EVT32(SDE_EVTLOG_FUNC_ENTRY); mutex_lock(&display->display_lock);