Merge "msm: mdss: hdmi: skip pan_display during handoff"

This commit is contained in:
Linux Build Service Account 2019-05-13 09:47:45 -07:00 committed by Gerrit - the friendly Code Review server
commit 8258c6a068

View file

@ -1,7 +1,7 @@
/* /*
* Core MDSS framebuffer driver. * Core MDSS framebuffer driver.
* *
* Copyright (c) 2008-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2008-2019, The Linux Foundation. All rights reserved.
* Copyright (C) 2007 Google Incorporated * Copyright (C) 2007 Google Incorporated
* *
* This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public
@ -3507,16 +3507,19 @@ static int mdss_fb_pan_display(struct fb_var_screeninfo *var,
{ {
struct mdp_display_commit disp_commit; struct mdp_display_commit disp_commit;
struct msm_fb_data_type *mfd = (struct msm_fb_data_type *)info->par; struct msm_fb_data_type *mfd = (struct msm_fb_data_type *)info->par;
struct mdss_data_type *mdata = mfd_to_mdata(mfd);
/* /*
* during mode switch through mode sysfs node, it will trigger a * Abort pan_display operations in following cases:
* pan_display after switch. This assumes that fb has been adjusted, * 1. during mode switch through mode sysfs node, it will trigger a
* however when using overlays we may not have the right size at this * pan_display after switch. This assumes that fb has been adjusted,
* point, so it needs to go through PREPARE first. Abort pan_display * however when using overlays we may not have the right size at this
* operations until that happens * point, so it needs to go through PREPARE first.
* 2. When the splash handoff is pending.
*/ */
if (mfd->switch_state != MDSS_MDP_NO_UPDATE_REQUESTED) { if ((mfd->switch_state != MDSS_MDP_NO_UPDATE_REQUESTED) ||
pr_debug("fb%d: pan_display skipped during switch\n", mdata->handoff_pending) {
pr_debug("fb%d: pan_display skipped during switch or handoff\n",
mfd->index); mfd->index);
return 0; return 0;
} }