提交 7b9c5abe 编写于 作者: J Jesse Barnes 提交者: Eric Anholt

drm/i915: give up on 8xx lid status

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: NJesse Barnes <jbarnes@virtuousgeek.org>
Cc: stable@kernel.org
Signed-off-by: NEric Anholt <eric@anholt.net>
上级 f590d279
...@@ -648,8 +648,15 @@ static const struct dmi_system_id bad_lid_status[] = { ...@@ -648,8 +648,15 @@ static const struct dmi_system_id bad_lid_status[] = {
*/ */
static enum drm_connector_status intel_lvds_detect(struct drm_connector *connector) 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; enum drm_connector_status status = connector_status_connected;
/* ACPI lid methods were generally unreliable in this generation, so
* don't even bother.
*/
if (IS_I8XX(dev))
return connector_status_connected;
if (!dmi_check_system(bad_lid_status) && !acpi_lid_open()) if (!dmi_check_system(bad_lid_status) && !acpi_lid_open())
status = connector_status_disconnected; status = connector_status_disconnected;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册