drm/i915/tc: Assume a TC port is legacy if VBT says the port has HDMI
authorImre Deak <imre.deak@intel.com>
Tue, 21 Mar 2023 22:00:59 +0000 (00:00 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 22 Mar 2023 18:31:17 +0000 (20:31 +0200)
commit40a55b842bbcd3d79b7a8ff7c426b22b6700768b
tree29f10d63325090d0bb201ea10bfe19354909089c
parenta8b4114d112530440c00fd5bc01e4497480fa4e8
drm/i915/tc: Assume a TC port is legacy if VBT says the port has HDMI

Since an HDMI output can only be enabled in legacy mode on TC ports,
assume that VBT is wrong and the port is legacy if VBT says the port is
non-legacy and has HDMI. If VBT says to enable DP as well leave the
non-legacy flag enabled, relying on the flag getting fixed up based on
the HPD status during sink detection.

v2: Fix the legacy port flag only if DP is not enabled.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230321220101.983366-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c