]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit818892bed2a88eabb4f0bf9841862e2dc8734da2
tree6bebb8ea79fd6fccb3e0378653be7c1bc3bd49c7
parent8e1e5687b3dd3d9bffd0cdddb96dfd3a641142e2
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