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 <bangnguyen@motorola.com>

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 <shuoyan@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Bang Nguyen 2019-07-25 10:11:43 -05:00 • committed by tongkun1
commit b6b7d77704
2 changed files with 7 additions and 1 deletions

View file

@ -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);

View file

@ -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 */