drm/i915/tc: Check for DP-alt, legacy sinks before taking PHY ownership
authorImre Deak <imre.deak@intel.com>
Wed, 29 Sep 2021 13:28:28 +0000 (16:28 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 29 Sep 2021 20:57:33 +0000 (23:57 +0300)
commit30e114ef4b1620bd6768952279b53ea24e232efb
tree6bebb8ea79fd6fccb3e0378653be7c1bc3bd49c7
parent62e1e308ffd7a867ef82375f3cff7f8789ce6721
drm/i915/tc: Check for DP-alt, legacy sinks before taking PHY ownership

On ADL-P the PHY ready/complete flag is always set even in TBT-alt mode.
To avoid taking the PHY ownership and the following spurious "PHY sudden
disconnect" messages on this platform when connecting the PHY in TBT
mode, check if there is any DP-alt or legacy sink connected before
taking the ownership.

v2: (Jose)
- Fix debug message clarifying that a TBT sink can be connected.
- Add comments describing the PHY complete HW flag semantic differences
  between adl-p and other platforms.

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