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 08:58:41 +0000 (08:58 +0000)
commit8b5abbe0683f285e1311c4cc29c79da07d18d0af
tree778c93376cf77e9dc60eceab26ec26167410f2a4
parent8f2535d9d9c8d87bfbbddab3a5b27abe48213ad2
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