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

Commit 63bcfad0 authored by Ashish Garg's avatar Ashish Garg
Browse files

msm: mdss: wait for one commit transfer for command mode after resume



In command mode, the backlight level is set before the first commit
is completed. It shows a snowy screen after suspend resume. Wait for
one ping pong done to ensure commit is completed after suspend
resume before backlight level is set.

Change-Id: I2c6da73f3f84bcdf84e5b90c64f9ca05f0c27198
Signed-off-by: default avatarAshish Garg <ashigarg@codeaurora.org>
parent a3851309
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2600,6 +2600,18 @@ int mdss_mdp_overlay_kickoff(struct msm_fb_data_type *mfd,
	ATRACE_END("display_wait4comp");
	mdss_mdp_splash_cleanup(mfd, true);

	/*
	 * Wait for pingpong done only during resume for
	 * command mode panels. Ensure that one commit is
	 * sent before kickoff completes so that backlight
	 * update happens after it.
	 */
	if (mdss_fb_is_power_off(mfd) &&
		mfd->panel_info->type == MIPI_CMD_PANEL) {
		pr_debug("wait for pp done after resume for cmd mode\n");
		mdss_mdp_display_wait4pingpong(ctl, true);
	}

	/*
	 * Configure Timing Engine, if new fps was set.
	 * We need to do this after the wait for vsync