drm/i915/tc: Add generic TC PHY connect/disconnect handlers
authorImre Deak <imre.deak@intel.com>
Thu, 23 Mar 2023 14:20:17 +0000 (16:20 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 3 Apr 2023 08:35:30 +0000 (11:35 +0300)
commitd1fc4e391fbd321dff166208e58e30d3196626ba
treed8d8db918b85bd3e9e2536c0e3060877da342e47
parentab639f326e48385eeaf65fd129d3ff6d006cbeef
drm/i915/tc: Add generic TC PHY connect/disconnect handlers

Add generic handlers to connect/disconnect a PHY.

Setting the TC mode to the target mode deducted from the HPD state and -
if connecting to this mode fails - falling back to connecting to the
default (TBT) mode are common to all platforms; move the logic for this
from the ICL specific connect / disconnect handlers to the generic ones.

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