drm/i915/tc: Check TC mode instead of the VBT legacy flag
authorImre Deak <imre.deak@intel.com>
Thu, 23 Mar 2023 14:20:21 +0000 (16:20 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 3 Apr 2023 08:35:31 +0000 (11:35 +0300)
commite0b1ef58d98ae0feba98190c9faf192aabceb811
tree996b4aeb0993ba9e7baaf3d8e1a92caeba9e881f
parent3b7d5663702373358d58987a3684f6c59443d9d4
drm/i915/tc: Check TC mode instead of the VBT legacy flag

After the previous patch the TC mode in the connect/disconnect functions
is always in sync with the VBT legacy port flag, so for consistency with
the rest of the function check the TC mode instead of the VBT flag.

Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230323142035.1432621-16-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_tc.c