drm/i915/bxt: support for HPD long/short status decoding
authorImre Deak <imre.deak@intel.com>
Fri, 27 Mar 2015 15:22:34 +0000 (17:22 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Apr 2015 12:53:02 +0000 (14:53 +0200)
All non-GMCH platforms have the same register layout for HPD long/short
status, so let's use this condition instead of HAS_PCH_SPLIT, as the
latter doesn't apply for BXT.

Noticed by Daniel.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c

index 631484dd0b60f6ec55d4f749ffb5a7b45a0a7419..7f73f71741ae12487959bfc5feedf6a96bdfff7f 100644 (file)
@@ -1428,7 +1428,7 @@ static inline void intel_hpd_irq_handler(struct drm_device *dev,
                if (port && dev_priv->hpd_irq_port[port]) {
                        bool long_hpd;
 
-                       if (HAS_PCH_SPLIT(dev)) {
+                       if (!HAS_GMCH_DISPLAY(dev_priv)) {
                                dig_shift = pch_port_to_hotplug_shift(port);
                                long_hpd = (dig_hotplug_reg >> dig_shift) & PORTB_HOTPLUG_LONG_DETECT;
                        } else {