From: Ville Syrjälä Date: Tue, 3 May 2022 18:22:39 +0000 (+0300) Subject: drm/i915: Require an exact DP link freq match for the DG2 PLL X-Git-Tag: v6.0-rc1~138^2~19^2~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f543d664cec7e9b490bca55f57151afe6f5cf47;p=thirdparty%2Flinux.git drm/i915: Require an exact DP link freq match for the DG2 PLL No idea why the DG2 PLL DP link frequency calculation is allowing a non-exact match. That makes no sense so get rid of it. Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20220503182242.18797-24-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula Acked-by: Matt Roper --- diff --git a/drivers/gpu/drm/i915/display/intel_snps_phy.c b/drivers/gpu/drm/i915/display/intel_snps_phy.c index cc1270978b67e..b48f42f1832a9 100644 --- a/drivers/gpu/drm/i915/display/intel_snps_phy.c +++ b/drivers/gpu/drm/i915/display/intel_snps_phy.c @@ -629,7 +629,7 @@ int intel_mpllb_calc_state(struct intel_crtc_state *crtc_state, return -EINVAL; for (i = 0; tables[i]; i++) { - if (crtc_state->port_clock <= tables[i]->clock) { + if (crtc_state->port_clock == tables[i]->clock) { crtc_state->mpllb_state = *tables[i]; return 0; }