OSDN Git Service

drm/i915/adlp/tc: Fix PHY connected check for Thunderbolt mode
authorImre Deak <imre.deak@intel.com>
Tue, 21 Sep 2021 00:23:02 +0000 (03:23 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 29 Sep 2021 20:57:16 +0000 (23:57 +0300)
commit4f7dad584fdce914d698233179a1188481789884
treeeaeaa1760025f89f179a702d090cbd6269b7813f
parent7194dc998dfffca096c30b3cd39625158608992d
drm/i915/adlp/tc: Fix PHY connected check for Thunderbolt mode

On ADL-P the PHY ready (aka status complete on other platforms) flag is
always set, besides when a DP-alt, legacy sink is connected also when a
TBT sink is connected or nothing is connected. So assume the PHY to be
connected when both the TBT live status and PHY ready flags are set.

Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210921002313.1132357-3-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_tc.c