Loading msm/sde/sde_kms.c +6 −4 Original line number Diff line number Diff line Loading @@ -891,16 +891,18 @@ static void _sde_kms_drm_check_dpms(struct drm_atomic_state *old_state, struct drm_connector *connector; struct drm_connector_state *old_conn_state; struct drm_crtc_state *old_crtc_state; struct drm_crtc *crtc; int i, old_mode, new_mode, old_fps, new_fps; for_each_old_connector_in_state(old_state, connector, old_conn_state, i) { if (!connector->state->crtc) crtc = connector->state->crtc ? connector->state->crtc : old_conn_state->crtc; if (!crtc) continue; new_fps = connector->state->crtc->state->mode.vrefresh; new_mode = _sde_kms_get_blank(connector->state->crtc->state, connector->state); new_fps = crtc->state->mode.vrefresh; new_mode = _sde_kms_get_blank(crtc->state, connector->state); if (old_conn_state->crtc) { old_crtc_state = drm_atomic_get_existing_crtc_state( old_state, old_conn_state->crtc); Loading Loading
msm/sde/sde_kms.c +6 −4 Original line number Diff line number Diff line Loading @@ -891,16 +891,18 @@ static void _sde_kms_drm_check_dpms(struct drm_atomic_state *old_state, struct drm_connector *connector; struct drm_connector_state *old_conn_state; struct drm_crtc_state *old_crtc_state; struct drm_crtc *crtc; int i, old_mode, new_mode, old_fps, new_fps; for_each_old_connector_in_state(old_state, connector, old_conn_state, i) { if (!connector->state->crtc) crtc = connector->state->crtc ? connector->state->crtc : old_conn_state->crtc; if (!crtc) continue; new_fps = connector->state->crtc->state->mode.vrefresh; new_mode = _sde_kms_get_blank(connector->state->crtc->state, connector->state); new_fps = crtc->state->mode.vrefresh; new_mode = _sde_kms_get_blank(crtc->state, connector->state); if (old_conn_state->crtc) { old_crtc_state = drm_atomic_get_existing_crtc_state( old_state, old_conn_state->crtc); Loading