On Mon, 2026-05-18 at 14:24 +0300, Imre Deak wrote: > Add intel_dp_set_common_link_params() to prepare for updating the > maximum common lane count together with the common rates. > > Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Jouni Högander <[email protected]> > --- > drivers/gpu/drm/i915/display/intel_dp.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c > b/drivers/gpu/drm/i915/display/intel_dp.c > index 9c530ef12b7cc..06bf1fb23faff 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -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); > } > > @@ -4903,7 +4907,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 > @@ -7341,7 +7345,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_force(intel_dp); > > /* init MST on ports that can support it */
