disp: msm: sde: allow qsync update along with modeset
This change allows concurrent qsync updates along with DMS modeset condition. With this change, qsync can be enabled or disabled in the same atomic commit along with MSM_MODE_FLAG_SEAMLESS_DMS condition. Change-Id: I1b51a68f947126b25a578645e92d95c9a8ae26f5 Signed-off-by: Yashwanth <quic_yvulapu@quicinc.com>
This commit is contained in:
@@ -1127,10 +1127,8 @@ static int _sde_encoder_atomic_check_qsync(struct sde_connector *sde_conn,
|
||||
qsync_dirty = msm_property_is_dirty(&sde_conn->property_info,
|
||||
&sde_conn_state->property_state, CONNECTOR_PROP_QSYNC_MODE);
|
||||
|
||||
if (has_modeset && qsync_dirty &&
|
||||
(msm_is_mode_seamless_poms(&sde_conn_state->msm_mode) ||
|
||||
msm_is_mode_seamless_dms(&sde_conn_state->msm_mode) ||
|
||||
msm_is_mode_seamless_dyn_clk(&sde_conn_state->msm_mode))) {
|
||||
if (has_modeset && qsync_dirty && (msm_is_mode_seamless_poms(&sde_conn_state->msm_mode) ||
|
||||
msm_is_mode_seamless_dyn_clk(&sde_conn_state->msm_mode))) {
|
||||
SDE_ERROR("invalid qsync update during modeset priv flag:%x\n",
|
||||
sde_conn_state->msm_mode.private_flags);
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user