diff options
author | Ankit Nautiyal <[email protected]> | 2021-02-08 11:25:54 +0530 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2021-02-08 13:08:35 +0200 |
commit | 81637a6ede89b95b6ea7b2f8c594676881110890 (patch) | |
tree | 5eaf80b16ed0a0f2e509739902cf189dfe5884c5 | |
parent | 714b1cdb02ee670be1ec5b1190377fef3845acd9 (diff) |
drm/i915: Fix HAS_LSPCON macro for platforms between GEN9 and GEN10
Legacy LSPCON chip from MCA and Parade is only used for platforms
between GEN9 and GEN10. Fixing the HAS_LSPCON macro to reflect the same.
Signed-off-by: Ankit Nautiyal <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 017208ff8df4..d8f418eaeb78 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -1722,7 +1722,7 @@ tgl_stepping_get(struct drm_i915_private *dev_priv) #define HAS_GMCH(dev_priv) (INTEL_INFO(dev_priv)->display.has_gmch) -#define HAS_LSPCON(dev_priv) (INTEL_GEN(dev_priv) >= 9) +#define HAS_LSPCON(dev_priv) (IS_GEN_RANGE(dev_priv, 9, 10)) /* DPF == dynamic parity feature */ #define HAS_L3_DPF(dev_priv) (INTEL_INFO(dev_priv)->has_l3_dpf) |