disp: msm: add connector state along with crtc state to detect modeset

During modeset, private mode changed is detected from
msm_display_mode which is present in sde_connector_state.
In the current code, sde_connector_state is found from the
drm_connector variable which will not be valid
during atomic check phase and new connector state is
required here. To handle this, drm_connector_state is passed
along with the drm_crtc_state while detecting
msm_atomic_needs_modeset condition.

Change-Id: I62c162eff6e1c091cb05b3f049a40a0f25b710ba
Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
This commit is contained in:
Yashwanth
2021-04-29 17:14:15 +05:30
committed by Raviteja Tamatam
parent 807f03d2c9
commit ffc7cdbe08
5 changed files with 60 additions and 20 deletions

View File

@@ -2519,7 +2519,7 @@ int sde_rm_reserve(
/* Check if this is just a page-flip */
if (!_sde_rm_is_display_in_cont_splash(sde_kms, enc) &&
!msm_atomic_needs_modeset(crtc_state))
!msm_atomic_needs_modeset(crtc_state, conn_state))
return 0;
comp_info = kzalloc(sizeof(*comp_info), GFP_KERNEL);