Merge "disp: msm: sde: trigger a suspend commit if display in video mode"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
68e4c1a426
@@ -4187,7 +4187,8 @@ retry:
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
lp = sde_connector_get_lp(conn);
|
lp = sde_connector_get_lp(conn);
|
||||||
if (lp == SDE_MODE_DPMS_LP1) {
|
if (lp == SDE_MODE_DPMS_LP1 &&
|
||||||
|
!sde_encoder_check_curr_mode(conn->encoder, MSM_DISPLAY_VIDEO_MODE)) {
|
||||||
/* transition LP1->LP2 on pm suspend */
|
/* transition LP1->LP2 on pm suspend */
|
||||||
ret = sde_connector_set_property_for_commit(conn, state,
|
ret = sde_connector_set_property_for_commit(conn, state,
|
||||||
CONNECTOR_PROP_LP, SDE_MODE_DPMS_LP2);
|
CONNECTOR_PROP_LP, SDE_MODE_DPMS_LP2);
|
||||||
@@ -4199,7 +4200,8 @@ retry:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lp != SDE_MODE_DPMS_LP2) {
|
if (lp != SDE_MODE_DPMS_LP2 ||
|
||||||
|
sde_encoder_check_curr_mode(conn->encoder, MSM_DISPLAY_VIDEO_MODE)) {
|
||||||
/* force CRTC to be inactive */
|
/* force CRTC to be inactive */
|
||||||
crtc_state = drm_atomic_get_crtc_state(state,
|
crtc_state = drm_atomic_get_crtc_state(state,
|
||||||
conn->state->crtc);
|
conn->state->crtc);
|
||||||
@@ -4211,7 +4213,8 @@ retry:
|
|||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lp != SDE_MODE_DPMS_LP1)
|
if (lp != SDE_MODE_DPMS_LP1 ||
|
||||||
|
sde_encoder_check_curr_mode(conn->encoder, MSM_DISPLAY_VIDEO_MODE))
|
||||||
crtc_state->active = false;
|
crtc_state->active = false;
|
||||||
++num_crtcs;
|
++num_crtcs;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user