From 899f7dc007391b8e3fd514b30645cdb263970db3 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Thu, 29 Oct 2026 13:30:15 +0200 Subject: drm/i915/ptl+: Add TypeC HPD pin selection for port B Handle the TypeC PHY on port B case while mapping the port to an HPD pin. This prepares for an upcoming change that will set port B's PHY type to TypeC on PTL+ platforms with an eDP panel connected to a TypeC PHY. Keep the existing port >= PORT_TC1 case and its HPD pin mapping for DG2, where PORT_TC1 has a non-TypeC PHY. CC: stable@vger.kernel.org # 6.14+ Reviewed-by: Mika Kahola Signed-off-by: Imre Deak Link: https://patch.msgid.link/20261029113017.618286-5-imre.deak@intel.com (cherry picked from commit 0f35ced2b44db21527cdb80065e80693fb0ab563) Signed-off-by: Joonas Lahtinen --- drivers/gpu/drm/i915/display/intel_ddi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu') diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c index 6feb277f951e..d7c7ef22b73c 100644 --- a/drivers/gpu/drm/i915/display/intel_ddi.c +++ b/drivers/gpu/drm/i915/display/intel_ddi.c @@ -5053,6 +5053,8 @@ static enum hpd_pin xelpd_hpd_pin(struct intel_display *display, enum port port) return HPD_PORT_D + port - PORT_D_XELPD; else if (port >= PORT_TC1) return HPD_PORT_TC1 + port - PORT_TC1; + else if (intel_phy_is_tc(display, intel_port_to_phy(display, port))) + return HPD_PORT_TC1 + intel_port_to_tc(display, port) - TC_PORT_1; else return HPD_PORT_A + port - PORT_A; } -- cgit v1.2.3