@@ -170,7 +170,6 @@ enum dpu_enc_rc_states {
* clks and resources after IDLE_TIMEOUT time.
* @vsync_event_work: worker to handle vsync event for autorefresh
* @topology: topology of the display
- * @mode_set_complete: flag to indicate modeset completion
* @idle_timeout: idle timeout duration in milliseconds
*/
struct dpu_encoder_virt {
@@ -208,7 +207,6 @@ struct dpu_encoder_virt {
struct delayed_work delayed_off_work;
struct kthread_work vsync_event_work;
struct msm_display_topology topology;
- bool mode_set_complete;
u32 idle_timeout;
};
@@ -604,12 +602,7 @@ static int dpu_encoder_virt_atomic_check(
}
}
- /*
- * Avoid reserving resources when mode set is pending. Topology
- * info may not be available to complete reservation.
- */
- if (!ret && drm_atomic_crtc_needs_modeset(crtc_state)
- && dpu_enc->mode_set_complete) {
+ if (!ret && drm_atomic_crtc_needs_modeset(crtc_state)) {
struct msm_display_topology topology;
struct dpu_private_state *dpu_priv_state;
@@ -619,7 +612,6 @@ static int dpu_encoder_virt_atomic_check(
ret = dpu_rm_reserve(&dpu_kms->rm, drm_enc,
&dpu_priv_state->base, topology, false);
- dpu_enc->mode_set_complete = false;
}
if (!ret)
@@ -1039,8 +1031,6 @@ static void dpu_encoder_virt_mode_set(struct drm_encoder *drm_enc,
if (phys->ops.mode_set)
phys->ops.mode_set(phys, mode, adj_mode);
}
-
- dpu_enc->mode_set_complete = true;
}
static void _dpu_encoder_virt_enable_helper(struct drm_encoder *drm_enc)