]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
dmc/i915/tc: Report pin assignment NONE in TBT-alt mode
authorImre Deak <imre.deak@intel.com>
Tue, 5 Aug 2025 07:36:58 +0000 (10:36 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 13 Aug 2025 12:03:25 +0000 (15:03 +0300)
The pin assignment is only relevant in case the PHY is owned by the
display, that is in legacy and DP-alt mode. In TBT-alt mode the PHY is
owned by the TBT FW/driver and so the pin assignment/configuration is
managed by those components. A follow-up change will cache the pin
assignment value in all the TypeC modes - querying this by calling
get_pin_assignment() - prepare for that here, by reporting pin
assignment NONE in the TBT-alt mode.

Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://lore.kernel.org/r/20250805073700.642107-18-imre.deak@intel.com
Signed-off-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_tc.c

index 073c434fd37870c140cca63caa557a2db475880a..3e53332f804f88669dd493f3e5cb23710ed6c03e 100644 (file)
@@ -287,6 +287,9 @@ get_pin_assignment(struct intel_tc_port *tc)
        u32 mask;
        u32 val;
 
+       if (tc->mode == TC_PORT_TBT_ALT)
+               return INTEL_TC_PIN_ASSIGNMENT_NONE;
+
        if (DISPLAY_VER(display) >= 20) {
                reg = TCSS_DDI_STATUS(tc_port);
                mask = TCSS_DDI_STATUS_PIN_ASSIGNMENT_MASK;