aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dp_mst.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp_mst.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dp_mst.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c
index b61e291367b4..5d8471f080d9 100644
--- a/drivers/gpu/drm/i915/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/intel_dp_mst.c
@@ -80,17 +80,12 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder,
80 mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock, bpp); 80 mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock, bpp);
81 pipe_config->pbn = mst_pbn; 81 pipe_config->pbn = mst_pbn;
82 82
83 /* Zombie connectors can't have VCPI slots */ 83 slots = drm_dp_atomic_find_vcpi_slots(state, &intel_dp->mst_mgr, port,
84 if (!drm_connector_is_unregistered(connector)) { 84 mst_pbn);
85 slots = drm_dp_atomic_find_vcpi_slots(state, 85 if (slots < 0) {
86 &intel_dp->mst_mgr, 86 DRM_DEBUG_KMS("failed finding vcpi slots:%d\n",
87 port, 87 slots);
88 mst_pbn); 88 return slots;
89 if (slots < 0) {
90 DRM_DEBUG_KMS("failed finding vcpi slots:%d\n",
91 slots);
92 return slots;
93 }
94 } 89 }
95 90
96 intel_link_compute_m_n(bpp, lane_count, 91 intel_link_compute_m_n(bpp, lane_count,