mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 11:48:58 -04:00
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
This commit is contained in:
@@ -509,6 +509,10 @@ static bool icl_tc_phy_is_connected(struct intel_digital_port *dig_port)
|
||||
return dig_port->tc_mode == TC_PORT_TBT_ALT;
|
||||
}
|
||||
|
||||
/* On ADL-P the PHY complete flag is set in TBT mode as well. */
|
||||
if (IS_ALDERLAKE_P(i915) && dig_port->tc_mode == TC_PORT_TBT_ALT)
|
||||
return true;
|
||||
|
||||
if (!tc_phy_is_owned(dig_port)) {
|
||||
drm_dbg_kms(&i915->drm, "Port %s: PHY not owned\n",
|
||||
dig_port->tc_port_name);
|
||||
|
||||
Reference in New Issue
Block a user