drm/i915: use intel_ddi_get_hw_state on CRT encoder too
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 31 Oct 2012 20:12:21 +0000 (18:12 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:51:16 +0000 (23:51 +0100)
Because things changed on Haswell/LPT and the bits checked by
intel_crt_get_hw_state have moved to other registers.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_crt.c

index e4fd1027143c4fcbfaf38bcc868620834dc51710..1c97c2761e0ac8a0575ca70a25f79899d177d491 100644 (file)
@@ -784,7 +784,10 @@ void intel_crt_init(struct drm_device *dev)
 
        crt->base.disable = intel_disable_crt;
        crt->base.enable = intel_enable_crt;
-       crt->base.get_hw_state = intel_crt_get_hw_state;
+       if (IS_HASWELL(dev))
+               crt->base.get_hw_state = intel_ddi_get_hw_state;
+       else
+               crt->base.get_hw_state = intel_crt_get_hw_state;
        intel_connector->get_hw_state = intel_connector_get_hw_state;
 
        drm_encoder_helper_add(&crt->base.base, &crt_encoder_funcs);