static int mdss_dsi_unblank(struct mdss_panel_data *pdata) { int ret = 0; struct mipi_panel_info *mipi; struct mdss_dsi_ctrl_pdata *ctrl_pdata = NULL; pr_debug("%s+:\n", __func__); if (pdata == NULL) { pr_err("%s: Invalid input data\n", __func__); return -EINVAL; } ctrl_pdata = container_of(pdata, struct mdss_dsi_ctrl_pdata, panel_data); mipi = &pdata->panel_info.mipi; mdss_dsi_clk_ctrl(ctrl_pdata, DSI_ALL_CLKS, 1); if (!(ctrl_pdata->ctrl_state & CTRL_STATE_PANEL_INIT)) { if (!pdata->panel_info.dynamic_switch_pending) { ret = ctrl_pdata->on(pdata); if (ret) { pr_err("%s: unable to initialize the panel\n", __func__); goto error; } } ctrl_pdata->ctrl_state |= CTRL_STATE_PANEL_INIT; } //+++ #ifdef CONFIG_ZTEMT_LCD_DISP_ENHANCE zte_disp_enhance(); #endif //--- if ((pdata->panel_info.type == MIPI_CMD_PANEL) && mipi->vsync_enable && mipi->hw_vsync_mode) mdss_dsi_set_tear_on(ctrl_pdata); error: mdss_dsi_clk_ctrl(ctrl_pdata, DSI_ALL_CLKS, 0); pr_debug("%s-:\n", __func__); return ret; }
static int mdss_dsi_unblank(struct mdss_panel_data *pdata) { int ret = 0; struct mipi_panel_info *mipi; struct mdss_dsi_ctrl_pdata *ctrl_pdata = NULL; pr_debug("%s+:\n", __func__); if (pdata == NULL) { pr_err("%s: Invalid input data\n", __func__); return -EINVAL; } ctrl_pdata = container_of(pdata, struct mdss_dsi_ctrl_pdata, panel_data); mipi = &pdata->panel_info.mipi; if (!(ctrl_pdata->ctrl_state & CTRL_STATE_PANEL_INIT)) { ret = ctrl_pdata->on(pdata); if (ret) { pr_err("%s: unable to initialize the panel\n", __func__); return ret; } ctrl_pdata->ctrl_state |= CTRL_STATE_PANEL_INIT; } #ifdef CONFIG_ZTEMT_LCD_DISP_ENHANCE zte_disp_enhance(); #endif if (pdata->panel_info.type == MIPI_CMD_PANEL) { if (mipi->vsync_enable && mipi->hw_vsync_mode && gpio_is_valid(ctrl_pdata->disp_te_gpio)) { mdss_dsi_set_tear_on(ctrl_pdata); } } pr_debug("%s-:\n", __func__); return ret; }