]> 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)
commit10fcd65c20fa5aabbfc104da87e4253fba48b9ce
tree6bebb8ea79fd6fccb3e0378653be7c1bc3bd49c7
parentcf291cc1c427e18a886b42854a608af8b229e9d2
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