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

Commit 173773de authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: add new mode to notify when there is a fps change" into display-kernel.lnx.4.19

parents 5bfa6f61 828241bb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -907,6 +907,14 @@ static void _sde_kms_drm_check_dpms(struct drm_atomic_state *old_state,
			pr_debug("change detected (power mode %d->%d, fps %d->%d)\n",
				old_mode, new_mode, old_fps, new_fps);

			/* If suspend resume and fps change are happening
			 * at the same time, give preference to power mode
			 * changes rather than fps change.
			 */

			if ((old_mode == new_mode) && (old_fps != new_fps))
				new_mode = DRM_PANEL_BLANK_FPS_CHANGE;

			notifier_data.data = &new_mode;
			notifier_data.refresh_rate = new_fps;
			notifier_data.id = connector->base.id;