drm/i915: Take advantage of auto-polling CRT hotplug detection on PCH hardware
authorKeith Packard <keithp@keithp.com>
Tue, 16 Nov 2010 08:03:53 +0000 (16:03 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Nov 2010 09:30:28 +0000 (09:30 +0000)
commite7dbb2f2f8ac843ab5e4d6a8e9a71d16089d324b
tree193d71e31fecc335ef2b0f542131d99cc543d82f
parentc9a1c4cded955176479a28556f546d3d015aee91
drm/i915: Take advantage of auto-polling CRT hotplug detection on PCH hardware

Both IBX and CPT have an automatic hotplug detection mode which appears to work reliably enough
that we can dispense with the manual force hotplug trigger stuff. This means that
hotplug detection is as simple as reading the current hotplug register values.

The first time the hotplug detection is activated, the code synchronously waits for a hotplug
sequence in case the hardware hasn't bothered to do a detection cycle since being initialized.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_crt.c