From b6b7d7770441b7bb26c1255e62a8f197b6bb0f52 Mon Sep 17 00:00:00 2001 From: Bang Nguyen Date: Thu, 25 Jul 2019 10:11:43 -0500 Subject: [PATCH] disp: msm: dsi: add prints for DSI/panel turning off/on Add some pr_info to indicate the DSI and panel are turning off and on for ESD or black screen investigation. Port from: 8c661f3540990aa1c37f1ef9b5b361114eec86ce Signed-off-by: Bang Nguyen Change-Id: I7c05aa6b0cf8f0128c8421d58d5a22647fd1b164 Reviewed-on: https://gerrit.mot.com/1697229 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shuo Yan Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- msm/dsi/dsi_display.c | 2 ++ msm/dsi/dsi_panel.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index 229643bf9b88..5d0767ac4936 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -7890,6 +7890,7 @@ int dsi_display_prepare(struct dsi_display *display) return -EINVAL; } + DSI_INFO("%s(%s)+\n", __func__, display->drm_conn->name); SDE_EVT32(SDE_EVTLOG_FUNC_ENTRY); mutex_lock(&display->display_lock); @@ -8560,6 +8561,7 @@ int dsi_display_disable(struct dsi_display *display) return -EINVAL; } + DSI_INFO("%s(%s)+\n", __func__, display->drm_conn->name); SDE_EVT32(SDE_EVTLOG_FUNC_ENTRY); mutex_lock(&display->display_lock); diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index 2b8a53819195..0a65a9135086 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -338,6 +338,7 @@ static int dsi_panel_power_on(struct dsi_panel *panel) { int rc = 0; + DSI_INFO("%s(%s)+\n", __func__, panel->name); rc = dsi_pwr_enable_regulator(&panel->power_info, true); if (rc) { DSI_ERR("[%s] failed to enable vregs, rc=%d\n", @@ -383,6 +384,7 @@ static int dsi_panel_power_off(struct dsi_panel *panel) DSI_DEBUG("TWM Enabled, skip panel power off\n"); return rc; } + DSI_INFO("%s(%s)+\n", __func__, panel->name); if (gpio_is_valid(panel->reset_config.disp_en_gpio)) gpio_set_value(panel->reset_config.disp_en_gpio, 0); @@ -2466,7 +2468,7 @@ static int dsi_panel_parse_bl_config(struct dsi_panel *panel) panel->bl_config.bl_2bytes_enable = utils->read_bool(utils->data, "qcom,bklt-dcs-2bytes-enabled"); - pr_info("[%s] bl_2bytes_enable=%d\n", panel->name, + DSI_INFO("[%s] bl_2bytes_enable=%d\n", panel->name, panel->bl_config.bl_2bytes_enable); if (panel->bl_config.type == DSI_BACKLIGHT_PWM) { @@ -4685,6 +4687,7 @@ int dsi_panel_enable(struct dsi_panel *panel) return -EINVAL; } + DSI_INFO("%s(%s)+\n", __func__, panel->name); mutex_lock(&panel->panel_lock); rc = dsi_panel_tx_cmd_set(panel, DSI_CMD_SET_ON); @@ -4758,6 +4761,7 @@ int dsi_panel_disable(struct dsi_panel *panel) DSI_DEBUG("TWM Enabled, skip panel disable\n"); return rc; } + DSI_INFO("%s(%s)+\n", __func__, panel->name); mutex_lock(&panel->panel_lock); /* Avoid sending panel off commands when ESD recovery is underway */