]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/i915/dp: Return the right vswing tables
authorJosé Roberto de Souza <jose.souza@intel.com>
Mon, 30 Mar 2020 21:00:42 +0000 (14:00 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 31 Mar 2020 20:38:23 +0000 (13:38 -0700)
commit70988115ac69ecc249aa0f8e8265e8daf87bc28c
treedcbdac32c6f8eea0b560a1b19a535e79843d95af
parentf77a2db27f26c3ccba0681f7e89fef083718f07f
drm/i915/dp: Return the right vswing tables

DDI ports have its encoders initialized with INTEL_OUTPUT_DDI type and
later eDP ports that have the type changed to INTEL_OUTPUT_EDP.
But for all other DDI ports it can drive HDMI or DP depending on what
user connects to the ports.

ehl_get_combo_buf_trans() and tgl_get_combo_buf_trans() was checking
for INTEL_OUTPUT_DP that was never true, causing wrong vswing tables
being used.

So here replacing the INTEL_OUTPUT_DP checks by the valid output types
that this functions receives as parameters. HDMI cases will be
correctly handled as it do not use encoder->type, instead it calls the
functions with INTEL_OUTPUT_HDMI as type parameter and HDMI don't have
retraining.

v2:
changed INTEL_OUTPUT_DDI to INTEL_OUTPUT_EDP and INTEL_OUTPUT_HDMI

Fixes: bd3cf6f7ce20 ("drm/i915/dp/tgl+: Update combo phy vswing tables")
Cc: Clinton A Taylor <clinton.a.taylor@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200330210044.130510-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c