drm/i915: Treat eDP as always connected, again
authorVille Syrjälä <[email protected]>
Mon, 18 Jul 2016 10:15:14 +0000 (13:15 +0300)
committerDaniel Vetter <[email protected]>
Mon, 18 Jul 2016 12:33:09 +0000 (14:33 +0200)
eDP should be treated as connected even if doesn't have an EDID. In that
case we'll use the timings from the VBT. That used to be the case until
commit f21a21983ef1 ("drm/i915: Splitting intel_dp_detect")
broke things by considering even eDP disconnected if we fail to get
an EDID for it.

Fix things up again by treating eDP as always connected.

Cc: Shubhangi Shrivastava <[email protected]>
Cc: Nathan D Ciobanu <[email protected]>
Cc: Sivakumar Thulasimani <[email protected]>
Cc: Ander Conselvan de Oliveira <[email protected]>
Cc: Larry Finger <[email protected]>
Reported-by: Larry Finger <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96675
Cc: [email protected]
Fixes: f21a21983ef1 ("drm/i915: Splitting intel_dp_detect")
Signed-off-by: Ville Syrjälä <[email protected]>
Tested-by: Larry Finger <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 1b7f2c8b0773d5ccbef43ef38a13ad33136c9679)
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/intel_dp.c

index 40745e38d4382df559d3d3106bf7278324dfbb5b..891107f92d9fa7e8de0aebe02e44e256e45bb4e1 100644 (file)
@@ -4645,7 +4645,7 @@ intel_dp_detect(struct drm_connector *connector, bool force)
 
        intel_dp->detect_done = false;
 
-       if (intel_connector->detect_edid)
+       if (is_edp(intel_dp) || intel_connector->detect_edid)
                return connector_status_connected;
        else
                return connector_status_disconnected;