Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329391
b: refs/heads/master
c: ff04b35
h: refs/heads/master
i:
  329389: 0feff0b
  329387: eb5014c
  329383: f37d970
  329375: 47f7db7
v: v3
  • Loading branch information
Jani Nikula authored and Daniel Vetter committed Sep 3, 2012
1 parent d1acb34 commit 194d43d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2c7f6fd4d8d6dff8a561e7bd76b951808143310
refs/heads/master: ff04b35af0e40956764596e3d032f786e5451238
15 changes: 6 additions & 9 deletions trunk/drivers/gpu/drm/i915/intel_sdvo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2570,29 +2570,26 @@ bool intel_sdvo_init(struct drm_device *dev, uint32_t sdvo_reg, bool is_sdvob)
hotplug_mask = intel_sdvo->is_sdvob ?
SDVOB_HOTPLUG_INT_STATUS_I915 : SDVOC_HOTPLUG_INT_STATUS_I915;
}
dev_priv->hotplug_supported_mask |= hotplug_mask;

drm_encoder_helper_add(&intel_encoder->base, &intel_sdvo_helper_funcs);

/* In default case sdvo lvds is false */
if (!intel_sdvo_get_capabilities(intel_sdvo, &intel_sdvo->caps))
goto err;

/* Set up hotplug command - note paranoia about contents of reply.
* We assume that the hardware is in a sane state, and only touch
* the bits we think we understand.
*/
intel_sdvo_get_value(intel_sdvo, SDVO_CMD_GET_ACTIVE_HOT_PLUG,
&intel_sdvo->hotplug_active, 2);
intel_sdvo->hotplug_active[0] &= ~0x3;

if (intel_sdvo_output_setup(intel_sdvo,
intel_sdvo->caps.output_flags) != true) {
DRM_DEBUG_KMS("SDVO output failed to setup on %s\n",
SDVO_NAME(intel_sdvo));
goto err;
}

/* Only enable the hotplug irq if we need it, to work around noisy
* hotplug lines.
*/
if (intel_sdvo->hotplug_active[0])
dev_priv->hotplug_supported_mask |= hotplug_mask;

intel_sdvo_select_ddc_bus(dev_priv, intel_sdvo, sdvo_reg);

/* Set the input timing to the screen. Assume always input 0. */
Expand Down

0 comments on commit 194d43d

Please sign in to comment.