Commit 5aa56969 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Remove encoder type checks from MST suspend/resume

Now that eDP encoders won't have can_mst==true, we can throw out
the encoder type checks from the MST suspend/resume paths.

Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466621833-5054-3-git-send-email-ville.syrjala@linux.intel.com
parent f8e58ddf
...@@ -5733,15 +5733,12 @@ void intel_dp_mst_suspend(struct drm_device *dev) ...@@ -5733,15 +5733,12 @@ void intel_dp_mst_suspend(struct drm_device *dev)
/* disable MST */ /* disable MST */
for (i = 0; i < I915_MAX_PORTS; i++) { for (i = 0; i < I915_MAX_PORTS; i++) {
struct intel_digital_port *intel_dig_port = dev_priv->hotplug.irq_port[i]; struct intel_digital_port *intel_dig_port = dev_priv->hotplug.irq_port[i];
if (!intel_dig_port)
if (!intel_dig_port || !intel_dig_port->dp.can_mst)
continue; continue;
if (intel_dig_port->base.type == INTEL_OUTPUT_DISPLAYPORT) { if (intel_dig_port->dp.is_mst)
if (!intel_dig_port->dp.can_mst) drm_dp_mst_topology_mgr_suspend(&intel_dig_port->dp.mst_mgr);
continue;
if (intel_dig_port->dp.is_mst)
drm_dp_mst_topology_mgr_suspend(&intel_dig_port->dp.mst_mgr);
}
} }
} }
...@@ -5752,18 +5749,13 @@ void intel_dp_mst_resume(struct drm_device *dev) ...@@ -5752,18 +5749,13 @@ void intel_dp_mst_resume(struct drm_device *dev)
for (i = 0; i < I915_MAX_PORTS; i++) { for (i = 0; i < I915_MAX_PORTS; i++) {
struct intel_digital_port *intel_dig_port = dev_priv->hotplug.irq_port[i]; struct intel_digital_port *intel_dig_port = dev_priv->hotplug.irq_port[i];
if (!intel_dig_port) int ret;
continue;
if (intel_dig_port->base.type == INTEL_OUTPUT_DISPLAYPORT) {
int ret;
if (!intel_dig_port->dp.can_mst) if (!intel_dig_port || !intel_dig_port->dp.can_mst)
continue; continue;
ret = drm_dp_mst_topology_mgr_resume(&intel_dig_port->dp.mst_mgr); ret = drm_dp_mst_topology_mgr_resume(&intel_dig_port->dp.mst_mgr);
if (ret != 0) { if (ret)
intel_dp_check_mst_status(&intel_dig_port->dp); intel_dp_check_mst_status(&intel_dig_port->dp);
}
}
} }
} }
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