msm: mdss: dsi: return true when esd status is not enabled

Panel status check returns the current state based
on esd status check method. If esd method is not configured
then it returns panel dead which is misleading. This change
returns panel status alive if esd method is not enabled or
esd check callback is not registered for certain method.

Change-Id: I5df21df16618cd62b5d1495982ff889ed53ce31b
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
Dhaval Patel 2015-12-01 15:37:47 -08:00 committed by David Keitel
parent a309c04c54
commit 3c7a8474b0

View file

@ -2369,6 +2369,8 @@ static int mdss_dsi_event_handler(struct mdss_panel_data *pdata,
case MDSS_EVENT_DSI_PANEL_STATUS: case MDSS_EVENT_DSI_PANEL_STATUS:
if (ctrl_pdata->check_status) if (ctrl_pdata->check_status)
rc = ctrl_pdata->check_status(ctrl_pdata); rc = ctrl_pdata->check_status(ctrl_pdata);
else
rc = true;
break; break;
case MDSS_EVENT_PANEL_TIMING_SWITCH: case MDSS_EVENT_PANEL_TIMING_SWITCH:
rc = mdss_dsi_panel_timing_switch(ctrl_pdata, arg); rc = mdss_dsi_panel_timing_switch(ctrl_pdata, arg);