drm/i915/tc: Fix TC mode for a legacy port if the PHY is not ready
authorImre Deak <imre.deak@intel.com>
Thu, 16 Mar 2023 13:17:18 +0000 (15:17 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 22 Mar 2023 18:31:13 +0000 (20:31 +0200)
commitc173a91b760844074abcd636eda47d3b2c107a64
tree28380c720b125983bcd1e37d57b0b0a9f14f6aa3
parenta8da6c18b481efbe78618dbba18c2db3241f4fea
drm/i915/tc: Fix TC mode for a legacy port if the PHY is not ready

A legacy TC port can't be switched to TBT mode, even if the PHY
initialization wasn't ready yet for some reason, so prevent this.

This shouldn't normally happen as the driver waits for the IOM/TCSS
PHY initialization during driver loading and system resume.

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