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

Commit 828241bb authored by Krishna Manikandan's avatar Krishna Manikandan Committed by Gerrit - the friendly Code Review server
Browse files

disp: msm: add new mode to notify when there is a fps change



Add a new mode DRM_PANEL_BLANK_FPS_CHANGE whenever there is
a change in fps and the power mode remains the same.
This will avoid unnecessary resume operations in touch driver.

Change-Id: Id3d5884ba862c864782636360e3832854464bf65
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent 206b75b2
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;