drm/i915/dp: add pre-PCH eDP checking to DP detect for VLV
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 1 Mar 2013 21:14:31 +0000 (13:14 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 6 Mar 2013 21:05:09 +0000 (22:05 +0100)
Allows us to detect eDP panels that may not have the hotplug pin wired up.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c

index 843f7a502cf0260672a0cec2a194dad8faf9fc16..3921d879a9165724dbf61dd0879410fc87f8806b 100644 (file)
@@ -2258,6 +2258,16 @@ g4x_dp_detect(struct intel_dp *intel_dp)
        struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
        uint32_t bit;
 
+       /* Can't disconnect eDP, but you can close the lid... */
+       if (is_edp(intel_dp)) {
+               enum drm_connector_status status;
+
+               status = intel_panel_detect(dev);
+               if (status == connector_status_unknown)
+                       status = connector_status_connected;
+               return status;
+       }
+
        switch (intel_dig_port->port) {
        case PORT_B:
                bit = PORTB_HOTPLUG_LIVE_STATUS;