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: Krishna Manikandan <mkrishn@codeaurora.org>
This commit is contained in:

committed by
Narendra Muppalla

parent
fb50dda175
commit
2b492f05d9
@@ -1002,6 +1002,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;
|
||||
|
Reference in New Issue
Block a user