summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2020-11-06 14:55:31 -0800
committerLucas De Marchi <lucas.demarchi@intel.com>2020-11-11 11:51:18 -0800
commit9a450b68fef7f482b334f900d9ae6d23261b17c1 (patch)
tree405aeebe1cf16922d3609b3d221cc204dc17a03d /drivers
parent96bd87b7c2216e5656476ea216b8ca64fe1a26fd (diff)
downloadlinux-9a450b68fef7f482b334f900d9ae6d23261b17c1.tar.bz2
drm/i915: Do not setup hpd without display
Now that hpd/display related calls are split from the rest in intel_irq_init(), skip all of that in case we don't have display. Cc: José Roberto de Souza <jose.souza@intel.com> Cc: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201106225531.920641-8-lucas.demarchi@intel.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 4faf7cb9c158..01f5749a5905 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -4212,6 +4212,9 @@ void intel_irq_init(struct drm_i915_private *dev_priv)
if (HAS_GT_UC(dev_priv) && INTEL_GEN(dev_priv) < 11)
dev_priv->gt.pm_guc_events = GUC_INTR_GUC2HOST << 16;
+ if (!HAS_DISPLAY(dev_priv))
+ return;
+
intel_hpd_init_pins(dev_priv);
intel_hpd_init_work(dev_priv);