]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/dp: Add helper to set common link params
authorImre Deak <imre.deak@intel.com>
Fri, 22 May 2026 16:05:12 +0000 (19:05 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 25 May 2026 12:07:41 +0000 (15:07 +0300)
Add intel_dp_set_common_link_params() to prepare for updating the
maximum common lane count together with the common rates.

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260522160514.2628249-3-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c

index 940e73ad451d7e9275fa82f4e07d96d617f2a433..e9eee452dc36f8e9bd5a6e60d806131d96439404 100644 (file)
@@ -805,7 +805,11 @@ static void intel_dp_set_common_rates(struct intel_dp *intel_dp)
                intel_dp->common_rates[0] = 162000;
                intel_dp->num_common_rates = 1;
        }
+}
 
+static void intel_dp_set_common_link_params(struct intel_dp *intel_dp)
+{
+       intel_dp_set_common_rates(intel_dp);
        intel_dp_link_config_init(intel_dp);
 }
 
@@ -4877,7 +4881,7 @@ void intel_dp_update_sink_caps(struct intel_dp *intel_dp)
 {
        intel_dp_set_sink_rates(intel_dp);
        intel_dp_set_max_sink_lane_count(intel_dp);
-       intel_dp_set_common_rates(intel_dp);
+       intel_dp_set_common_link_params(intel_dp);
 }
 
 static bool
@@ -7318,7 +7322,7 @@ intel_dp_init_connector(struct intel_digital_port *dig_port,
        }
 
        intel_dp_set_source_rates(intel_dp);
-       intel_dp_set_common_rates(intel_dp);
+       intel_dp_set_common_link_params(intel_dp);
        intel_dp_reset_link_params(intel_dp);
 
        /* init MST on ports that can support it */