Commit 3917c9d3 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Skip intel_modeset_pipe_config_late() if the pipe is not enabled

No sense in calling intel_modeset_pipe_config_late() for a disabled
pipe.
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907091057.11572-14-ville.syrjala@linux.intel.com
parent f7ba838c
......@@ -6783,9 +6783,11 @@ static int intel_atomic_check(struct drm_device *dev,
if (!intel_crtc_needs_modeset(new_crtc_state))
continue;
if (new_crtc_state->hw.enable) {
ret = intel_modeset_pipe_config_late(state, crtc);
if (ret)
goto fail;
}
intel_crtc_check_fastset(old_crtc_state, new_crtc_state);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment