From 42f8ef5f3ec725679e7b7040032ef243bcbc864c Mon Sep 17 00:00:00 2001 From: Jayant Shekhar Date: Wed, 3 Jun 2015 09:11:15 +0530 Subject: [PATCH] msm: mdss: Avoid setting esd_rdy to false in panel off When the phone is in suspend mode, the panel turns ON and OFF whenever it receives the message for ambient display. There are cases whenever the Power Key is pressed, it skips the Panel ON because already the state of the Panel is ON and the esd_rdy didn't turn to true, which was set to false during Panel OFF event. This result in ESD being disabled sometimes when we coming out of ambient mode. Hence set esd_rdy to true once during bootup and never set this back to false. Change-Id: I0cb4d7f02e0018125b6886651be99e93551f3301 Signed-off-by: Jayant Shekhar --- drivers/video/fbdev/msm/mdss_dsi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_dsi.c b/drivers/video/fbdev/msm/mdss_dsi.c index fb297ae6d157..09bbd4c9e605 100644 --- a/drivers/video/fbdev/msm/mdss_dsi.c +++ b/drivers/video/fbdev/msm/mdss_dsi.c @@ -2103,8 +2103,6 @@ static int mdss_dsi_event_handler(struct mdss_panel_data *pdata, break; case MDSS_EVENT_PANEL_OFF: power_state = (int) (unsigned long) arg; - if (!mdss_panel_is_power_on_interactive(power_state)) - pdata->panel_info.esd_rdy = false; ctrl_pdata->ctrl_state &= ~CTRL_STATE_MDP_ACTIVE; if (ctrl_pdata->off_cmds.link_state == DSI_LP_MODE) rc = mdss_dsi_blank(pdata, power_state);