Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45128c3c authored by Dhaval Patel's avatar Dhaval Patel
Browse files

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: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent ac6766f8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2177,6 +2177,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);