[PATCH 7/7] drm/i915/display: Use the new struct steps for squash cases
Anusha Srivatsa
anusha.srivatsa at intel.com
Mon Sep 19 23:41:18 UTC 2022
Signed-off-by: Anusha Srivatsa <anusha.srivatsa at intel.com>
---
drivers/gpu/drm/i915/display/intel_cdclk.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm/i915/display/intel_cdclk.c
index 12f5e4d23245..90eee09bd449 100644
--- a/drivers/gpu/drm/i915/display/intel_cdclk.c
+++ b/drivers/gpu/drm/i915/display/intel_cdclk.c
@@ -1724,6 +1724,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,
u16 waveform;
int clock;
int ret;
+ enum cdclk_sequence cdclk_sequence = cdclk_config->steps->action;
/* Inform power controller of upcoming frequency change. */
if (DISPLAY_VER(dev_priv) >= 11)
@@ -1772,7 +1773,7 @@ static void bxt_set_cdclk(struct drm_i915_private *dev_priv,
else
clock = cdclk;
- if (has_cdclk_squasher(dev_priv))
+ if (cdclk_sequence == CDCLK_SQUASH_ONLY)
dg2_prog_squash_ctl(dev_priv, waveform);
val = bxt_cdclk_cd2x_div_sel(dev_priv, clock, vco) |
--
2.25.1
More information about the Intel-gfx-trybot
mailing list