]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/tc: Add separate intel_tc_phy_port_to_tc() for TC DDI/PHY ports
authorImre Deak <imre.deak@intel.com>
Thu, 20 Nov 2025 17:23:55 +0000 (19:23 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 21 Nov 2025 18:50:34 +0000 (20:50 +0200)
commit8aa2945f049d7cfc7b3c9195a7341e8eb0d9c961
tree614fe4c6d1c2025a746e643f74b8b7f1266ebddc
parent370f45b1cea859484691128ec205abc7e9402fb7
drm/i915/tc: Add separate intel_tc_phy_port_to_tc() for TC DDI/PHY ports

intel_port_to_tc() returns the PORT_TC1..6 -> TC_PORT_1..6 mapping only
for DDI ports that are connected to a TypeC PHY. In some cases this
mapping is also required for TypeC DDI ports which are not connected to
a TypeC PHY. Such DDI ports are the PORT_TC1..4 ports on RKL/ADLS/BMG.

Add a separate intel_tc_phy_to_tc() helper to return the mapping for
ports connected to a TypeC PHY, and make all the current users - which
expect this semantic - call this helper. A follow-up change will need to
get the same mapping for TypeC DDI ports not connected to a TypeC PHY,
leave intel_port_to_tc() exported for that.

Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251120172358.1282765-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h