fbdev: msm: check for hdmi as primary

skip pan display operation if found hdmi as primary
and handoff is pending. This check will help pan display path
to execute for primary display in recovery mode.

Change-Id: Iedd7e6b98f62d3a0d5b9cdda4ba4591ed8bfac68
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
This commit is contained in:
raghavendra ambadas 2019-07-16 10:24:16 +05:30 committed by codeworkx
parent 2b43f489a3
commit 65638ab69c

View file

@ -3776,8 +3776,9 @@ static int mdss_fb_pan_display(struct fb_var_screeninfo *var,
* point, so it needs to go through PREPARE first. Abort pan_display
* operations until that happens
*/
if (mfd->switch_state != MDSS_MDP_NO_UPDATE_REQUESTED) {
pr_debug("fb%d: pan_display skipped during switch\n",
if ((mfd->switch_state != MDSS_MDP_NO_UPDATE_REQUESTED) ||
(mdss_fb_is_hdmi_primary(mfd) && mdata->handoff_pending)) {
pr_debug("fb%d: pan_display skipped during switch or handoff\n",
mfd->index);
return 0;
}