aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r--drivers/gpu/drm/i915/intel_panel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 18391b3ec2c1..4e5ff593413d 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -248,18 +248,24 @@ void intel_panel_setup_backlight(struct drm_device *dev)
248enum drm_connector_status 248enum drm_connector_status
249intel_panel_detect(struct drm_device *dev) 249intel_panel_detect(struct drm_device *dev)
250{ 250{
251#if 0
251 struct drm_i915_private *dev_priv = dev->dev_private; 252 struct drm_i915_private *dev_priv = dev->dev_private;
253#endif
252 254
253 if (i915_panel_ignore_lid) 255 if (i915_panel_ignore_lid)
254 return i915_panel_ignore_lid > 0 ? 256 return i915_panel_ignore_lid > 0 ?
255 connector_status_connected : 257 connector_status_connected :
256 connector_status_disconnected; 258 connector_status_disconnected;
257 259
260 /* opregion lid state on HP 2540p is wrong at boot up,
261 * appears to be either the BIOS or Linux ACPI fault */
262#if 0
258 /* Assume that the BIOS does not lie through the OpRegion... */ 263 /* Assume that the BIOS does not lie through the OpRegion... */
259 if (dev_priv->opregion.lid_state) 264 if (dev_priv->opregion.lid_state)
260 return ioread32(dev_priv->opregion.lid_state) & 0x1 ? 265 return ioread32(dev_priv->opregion.lid_state) & 0x1 ?
261 connector_status_connected : 266 connector_status_connected :
262 connector_status_disconnected; 267 connector_status_disconnected;
268#endif
263 269
264 return connector_status_unknown; 270 return connector_status_unknown;
265} 271}