[PATCH 060/108] drm/i915/dp_link_caps: Set forced link params before resetting link params

Imre Deak
2026-04-28T12:54:49Z

Set the debugfs forced link parameters before calling
intel_dp_reset_link_params(), so the reset can take them into account.

A follow-up change will update the maximum link parameters as part of
the reset, where the forced parameters also influence the result.

Signed-off-by: Imre Deak <imre.deak@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp_link_caps.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
index 5d6d5441b54a4..4905d68b13269 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
@@ -658,8 +658,8 @@ static ssize_t i915_dp_force_link_rate_write(struct file *file,

intel_dp_flush_connector_commits(connector);

- intel_dp_reset_link_params(intel_dp);
link_caps->forced_params.rate = rate;
+ intel_dp_reset_link_params(intel_dp);

drm_modeset_unlock(&display->drm->mode_config.connection_mutex);

@@ -766,8 +766,8 @@ static ssize_t i915_dp_force_lane_count_write(struct file *file,

intel_dp_flush_connector_commits(connector);

- intel_dp_reset_link_params(intel_dp);
link_caps->forced_params.lane_count = lane_count;
+ intel_dp_reset_link_params(intel_dp);

drm_modeset_unlock(&display->drm->mode_config.connection_mutex);

--
2.49.1