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

Commit 9494f1e8 authored by Sachin Bhayare's avatar Sachin Bhayare
Browse files

mdss: dsi: Force panel status dead for TE based ESD



Except for TE based ESD, other approaches have a method
to simulate panel dead state by giving following command :

adb shell "echo 5 > /sys/devices/virtual/graphics/fb0/msm_fb_panel_status"

This simulates a display dead state after 5 detections, which is about
25 seconds if the esd detection feature is enabled with periodic
detections every 5 seconds.

This change allows the simulation for TE based ESD approach.
In addition, it also includes the fix to enable BTA/reg read
based ESD thread to be scheduled even in the doze mode.

Change-Id: Id2375a80e9c59ca1abe8ac228bb2d185fb135092
Signed-off-by: default avatarSachin Bhayare <sachin.bhayare@codeaurora.org>
parent a3e227fc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ void mdp3_check_dsi_ctrl_status(struct work_struct *work,
					MDSS_STATUS_TE_WAIT_MAX;

		if (mdp3_check_te_status(ctrl_pdata, pdsi_status, timeout) > 0)
			return;
			goto sim;
		goto status_dead;
	}

@@ -152,7 +152,7 @@ void mdp3_check_dsi_ctrl_status(struct work_struct *work,
		else
			goto status_dead;
	}

sim:
	if (pdata->panel_info.panel_force_dead) {
		pr_debug("force_dead=%d\n", pdata->panel_info.panel_force_dead);
		pdata->panel_info.panel_force_dead--;