drm/i915: Move check_digital_port_conflicts() earier
check_digital_port_conflicts() is done needlessly late. Move it earlier. This will be needed as later on we want to set any_ms=true a bit later for non-modesets too and we can't call this guy without the connection_mutex held. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191015193035.25982-4-ville.syrjala@linux.intel.com Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
This commit is contained in:
parent
1d5a95b5c9
commit
bf5da83e4b
@ -13718,11 +13718,6 @@ static int intel_modeset_checks(struct intel_atomic_state *state)
|
|||||||
struct intel_crtc *crtc;
|
struct intel_crtc *crtc;
|
||||||
int ret, i;
|
int ret, i;
|
||||||
|
|
||||||
if (!check_digital_port_conflicts(state)) {
|
|
||||||
DRM_DEBUG_KMS("rejecting conflicting digital port configuration\n");
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* keep the current setting */
|
/* keep the current setting */
|
||||||
if (!state->cdclk.force_min_cdclk_changed)
|
if (!state->cdclk.force_min_cdclk_changed)
|
||||||
state->cdclk.force_min_cdclk = dev_priv->cdclk.force_min_cdclk;
|
state->cdclk.force_min_cdclk = dev_priv->cdclk.force_min_cdclk;
|
||||||
@ -13884,6 +13879,12 @@ static int intel_atomic_check(struct drm_device *dev,
|
|||||||
any_ms = true;
|
any_ms = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (any_ms && !check_digital_port_conflicts(state)) {
|
||||||
|
DRM_DEBUG_KMS("rejecting conflicting digital port configuration\n");
|
||||||
|
ret = EINVAL;
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
ret = drm_dp_mst_atomic_check(&state->base);
|
ret = drm_dp_mst_atomic_check(&state->base);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user