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>
このコミットが含まれているのは:
Yashwanth
2021-04-29 17:14:15 +05:30
committed by Raviteja Tamatam
コミット ffc7cdbe08
5個のファイルの変更60行の追加20行の削除

ファイルの表示

@@ -3584,9 +3584,15 @@ static void _sde_kms_pm_suspend_idle_helper(struct sde_kms *sde_kms,
kthread_flush_worker(&priv->pp_event_worker);
}
struct msm_display_mode *sde_kms_get_msm_mode(struct drm_crtc_state *c_state)
struct msm_display_mode *sde_kms_get_msm_mode(struct drm_connector_state *conn_state)
{
return sde_crtc_get_msm_mode(c_state);
struct sde_connector_state *sde_conn_state;
if (!conn_state)
return NULL;
sde_conn_state = to_sde_connector_state(conn_state);
return &sde_conn_state->msm_mode;
}
static int sde_kms_pm_suspend(struct device *dev)