All of lore.kernel.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Cc: <stable@vger.kernel.org>
Subject: [PATCH 4/6] drm/i915/ptl+: Add TypeC HPD pin selection for port B
Date: Thu, 29 Oct 2026 13:30:15 +0200	[thread overview]
Message-ID: <20261029113017.618286-5-imre.deak@intel.com> (raw)
In-Reply-To: <20261029113017.618286-1-imre.deak@intel.com>

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+
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
 drivers/gpu/drm/i915/display/intel_ddi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
index dda95709c7c73..5950246e45a06 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;
 }
-- 
2.49.1


  parent reply	other threads:[~2026-10-29 11:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29 11:30 [PATCH 0/6] drm/i915/ptl+: Fix eDP support on TypeC PHYs Imre Deak
2026-10-29 11:30 ` [PATCH 1/6] drm/i915/dp_aux: Take the TypeC port lock after the PPS lock Imre Deak
2026-10-29 11:30 ` [PATCH 2/6] drm/i915/pps: Hold a TypeC link reference for PPS VDD Imre Deak
2026-10-29 11:30 ` [PATCH 3/6] drm/i915/pps: Reset PPS state after TypeC port init on resume Imre Deak
2026-10-29 11:30 ` Imre Deak [this message]
2026-10-29 11:30 ` [PATCH 5/6] drm/i915/mtl+: Use PHY type to identify TypeC ports in PLL ID lookup Imre Deak
2026-10-29 11:38   ` sashiko-bot
2026-10-29 11:30 ` [PATCH 6/6] drm/i915/ptl+: Fix TypeC detection for eDP on port B Imre Deak
2026-10-29 11:37 ` ✗ CI.checkpatch: warning for drm/i915/ptl+: Fix eDP support on TypeC PHYs Patchwork
2026-10-29 11:40 ` ✓ CI.KUnit: success " Patchwork
2026-10-29 12:16 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-10-29 13:21 ` ✓ i915.CI.BAT: success " Patchwork
2026-10-29 23:50 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-10-30  1:55 ` ✗ i915.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261029113017.618286-5-imre.deak@intel.com \
    --to=imre.deak@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.