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 <jshekhar@codeaurora.org>
This commit is contained in:
Jayant Shekhar 2015-06-03 09:11:15 +05:30 committed by David Keitel
parent 6ab23d6ff2
commit 42f8ef5f3e

View file

@ -2103,8 +2103,6 @@ static int mdss_dsi_event_handler(struct mdss_panel_data *pdata,
break; break;
case MDSS_EVENT_PANEL_OFF: case MDSS_EVENT_PANEL_OFF:
power_state = (int) (unsigned long) arg; 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; ctrl_pdata->ctrl_state &= ~CTRL_STATE_MDP_ACTIVE;
if (ctrl_pdata->off_cmds.link_state == DSI_LP_MODE) if (ctrl_pdata->off_cmds.link_state == DSI_LP_MODE)
rc = mdss_dsi_blank(pdata, power_state); rc = mdss_dsi_blank(pdata, power_state);