drm/i915/tc: Fix up the legacy VBT flag only in disconnected mode
authorImre Deak <imre.deak@intel.com>
Thu, 23 Mar 2023 14:20:20 +0000 (16:20 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 3 Apr 2023 08:35:30 +0000 (11:35 +0300)
commit3b7d5663702373358d58987a3684f6c59443d9d4
tree37b9c68a13e248e9418dced279ffce1e6b4264b2
parentbd0fdd31c1023b9d94a470ed5bc301c3f9d80519
drm/i915/tc: Fix up the legacy VBT flag only in disconnected mode

A follow-up patch simplifies the tc_cold_block()/unblock() functions,
dropping the power domain parameter. For this it must be ensured that
the power domain - which depends on the actual TC mode and so the VBT
legacy port flag - can't change while the PHY is in a connected state
and accordingly TC-cold is blocked. Make this so, by fixing up the VBT
legacy flag only in the disconnected TC mode, instead of whenever the
HPD state is retrieved.

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-15-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_tc.c