]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
drm/i915: Use the GM45 VGA hotplug workaround on G45 as well.
authorMa Ling <ling.ma@intel.com>
Wed, 13 May 2009 06:46:12 +0000 (14:46 +0800)
committerEric Anholt <eric@anholt.net>
Thu, 14 May 2009 23:00:29 +0000 (16:00 -0700)
Although spec say CRT_HOTPLUG_ACTIVATION_PERIOD_64 is only useful for
mobile platform, it is also required to detect vga on G4x desktops correctly.
Tested on G45/G43/Q45 platforms with no regressions.

It fixed freedesktop.org bug #21120 and part of bug #21210

Signed-off-by: Ma Ling <ling.ma@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_crt.c

index 9bdd959260a542c1c08a7433eb124438eb75a3d2..19148c3df63796bde6320dbda053bca73bd469be 100644 (file)
@@ -161,7 +161,7 @@ static bool intel_crt_detect_hotplug(struct drm_connector *connector)
        hotplug_en &= CRT_FORCE_HOTPLUG_MASK;
        hotplug_en |= CRT_HOTPLUG_FORCE_DETECT;
 
-       if (IS_GM45(dev))
+       if (IS_G4X(dev))
                hotplug_en |= CRT_HOTPLUG_ACTIVATION_PERIOD_64;
 
        hotplug_en |= CRT_HOTPLUG_VOLTAGE_COMPARE_50;