From 3c7a8474b0b2ef7d26c58c0b2dabcb00605e80cc Mon Sep 17 00:00:00 2001 From: Dhaval Patel Date: Tue, 1 Dec 2015 15:37:47 -0800 Subject: [PATCH] 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 --- drivers/video/fbdev/msm/mdss_dsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/msm/mdss_dsi.c b/drivers/video/fbdev/msm/mdss_dsi.c index 33c44991f8d6..1bd9da7eaad1 100644 --- a/drivers/video/fbdev/msm/mdss_dsi.c +++ b/drivers/video/fbdev/msm/mdss_dsi.c @@ -2369,6 +2369,8 @@ static int mdss_dsi_event_handler(struct mdss_panel_data *pdata, case MDSS_EVENT_DSI_PANEL_STATUS: if (ctrl_pdata->check_status) rc = ctrl_pdata->check_status(ctrl_pdata); + else + rc = true; break; case MDSS_EVENT_PANEL_TIMING_SWITCH: rc = mdss_dsi_panel_timing_switch(ctrl_pdata, arg);