From: Jesse Barnes Date: Fri, 12 Feb 2010 17:30:00 +0000 (-0800) Subject: drm/i915: give up on 8xx lid status X-Git-Tag: firefly_0821_release~10186^2~1468 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=250312c4cfff9464353b92b75afad4aa2eb164bb;p=firefly-linux-kernel-4.4.55.git drm/i915: give up on 8xx lid status commit 7b9c5abee98c54f85bcc04bd4d7ec8d5094c73f4 upstream. These old machines more often than not lie about their lid state. So don't use it to detect LVDS presence, but leave the event handler to deal with lid open/close, when we might need to reset the mode. Fixes kernel bug #15248 Signed-off-by: Jesse Barnes Signed-off-by: Eric Anholt Cc: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 4a85aa38e9e8..bf0576298948 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c @@ -648,8 +648,12 @@ static const struct dmi_system_id bad_lid_status[] = { */ static enum drm_connector_status intel_lvds_detect(struct drm_connector *connector) { + struct drm_device *dev = connector->dev; enum drm_connector_status status = connector_status_connected; + if (IS_I8XX(dev)) + return connector_status_connected; + if (!acpi_lid_open() && !dmi_check_system(bad_lid_status)) status = connector_status_disconnected;