]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/ltphy: Update the ltpll config table value for eDP
authorSuraj Kandpal <suraj.kandpal@intel.com>
Sat, 1 Nov 2025 03:24:58 +0000 (08:54 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Sat, 1 Nov 2025 03:33:58 +0000 (09:03 +0530)
When we get the eDP tables we reuse dp tables for some data rates.
We need to modify the 3rd config value of this table to 1 instead
of 0 since that is the only difference in the dp and edp table for
that particular data rate.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Link: https://patch.msgid.link/20251101032513.4171255-11-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_lt_phy.c

index ece81e8d558dd8e7c07411f216422e33ffdcf070..892dea3b975feac2466fd54b5b2b455c7d163011 100644 (file)
@@ -1225,6 +1225,10 @@ intel_lt_phy_pll_calc_state(struct intel_crtc_state *crtc_state,
        for (i = 0; tables[i]; i++) {
                if (crtc_state->port_clock == tables[i]->clock) {
                        crtc_state->dpll_hw_state.ltpll = *tables[i];
+                       if (intel_crtc_has_dp_encoder(crtc_state)) {
+                               if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP))
+                                       crtc_state->dpll_hw_state.ltpll.config[2] = 1;
+                       }
                        return 0;
                }
        }