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

Commit 07d8533b authored by Krishna Manikandan's avatar Krishna Manikandan Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Enable TE based ESD check for auo cx command mode panel



TE based ESD check is enabled and it was found that during the
recovery after the ESD attack, the backlight was not set properly
and this issue was also fixed.

Change-Id: I440621e347d5297cd2a450225e80bfb61e8a5825
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent ee429cd2
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -1571,6 +1571,7 @@ static int mdp3_ctrl_display_commit_kickoff(struct msm_fb_data_type *mfd,
	int stride;
	bool null_commit = false;
	bool is_panel_type_cmd = false;
	int prev_bl;

	if (!mfd || !mfd->mdp.private1)
		return -EINVAL;
@@ -1783,9 +1784,15 @@ frame_done:
	}

	mdp3_session->vsync_before_commit = 0;
	prev_bl = mfd->bl_level;
	if (!splash_done || mdp3_session->esd_recovery == true) {
		if (panel && panel->set_backlight)
			panel->set_backlight(panel, panel->panel_info.bl_max);
		if (panel && panel->set_backlight) {
			if (mdp3_session->esd_recovery == true && prev_bl > 0)
				panel->set_backlight(panel, prev_bl);
			else
				panel->set_backlight(panel,
					panel->panel_info.bl_max);
		}
		splash_done = true;
		mdp3_session->esd_recovery = false;
	}