aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index e190ff792bf0..90f69d4717e9 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -589,12 +589,18 @@ static void intel_lvds_mode_set(struct drm_encoder *encoder,
589/** 589/**
590 * Detect the LVDS connection. 590 * Detect the LVDS connection.
591 * 591 *
592 * This always returns CONNECTOR_STATUS_CONNECTED. This connector should only have 592 * Since LVDS doesn't have hotlug, we use the lid as a proxy. Open means
593 * been set up if the LVDS was actually connected anyway. 593 * connected and closed means disconnected. We also send hotplug events as
594 * needed, using lid status notification from the input layer.
594 */ 595 */
595static enum drm_connector_status intel_lvds_detect(struct drm_connector *connector) 596static enum drm_connector_status intel_lvds_detect(struct drm_connector *connector)
596{ 597{
597 return connector_status_connected; 598 enum drm_connector_status status = connector_status_connected;
599
600 if (!acpi_lid_open())
601 status = connector_status_disconnected;
602
603 return status;
598} 604}
599 605
600/** 606/**