drm/i915/tc: Fix the ICL PHY ownership check in TC-cold state
authorjsg <jsg@openbsd.org>
Fri, 7 Apr 2023 03:57:13 +0000 (03:57 +0000)
committerjsg <jsg@openbsd.org>
Fri, 7 Apr 2023 03:57:13 +0000 (03:57 +0000)
From Imre Deak
75084659969f5cd0287a86e7faae3ef0a5651d1e in linux-6.1.y/6.1.23
38c583019484f190d5b33f59b8ae810e6b1763c6 in mainline linux

sys/dev/pci/drm/i915/display/intel_tc.c

index 8bfe8f7..38e22b0 100644 (file)
@@ -440,9 +440,9 @@ static bool icl_tc_phy_is_owned(struct intel_digital_port *dig_port)
                                PORT_TX_DFLEXDPCSSS(dig_port->tc_phy_fia));
        if (val == 0xffffffff) {
                drm_dbg_kms(&i915->drm,
-                           "Port %s: PHY in TCCOLD, assume safe mode\n",
+                           "Port %s: PHY in TCCOLD, assume not owned\n",
                            dig_port->tc_port_name);
-               return true;
+               return false;
        }
 
        return val & DP_PHY_MODE_STATUS_NOT_SAFE(dig_port->tc_phy_fia_idx);