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

Commit fe32e4b8 authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

msm: mdss: ignore writeback updates through pan_display path



Updating writeback through pan_display would be pointless as
there is no output buffer available. So, ignore wb updates
through this path.

Change-Id: Icfb0a8252c707eb5ac72810bc3b213aea95b7373
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 8ca03863
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2416,6 +2416,15 @@ static void mdss_mdp_overlay_pan_display(struct msm_fb_data_type *mfd)
	if (!mdp5_data || !mdp5_data->ctl)
		return;

	/*
	 * Ignore writeback updates through pan_display as output
	 * buffer is not available.
	 */
	if (mfd->panel_info->type == WRITEBACK_PANEL) {
		pr_err_once("writeback update not supported through pan display\n");
		return;
	}

	if (IS_ERR_OR_NULL(mfd->fbmem_buf) || fbi->fix.smem_len == 0 ||
		mdp5_data->borderfill_enable) {
		mfd->mdp.kickoff_fnc(mfd, NULL);