From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380598; b=ZCR7hwaHKDR0GSHnzV67etyqjEwGg5vNRl6BioHlQ+4X2OR2s7nmPIuzP4C8sqmzpeFH lTRP+gjxeUncxQEWPFnX6HpdDRvvRGPkWCHSbv7H7GY04snqztbHyc6O3LpaaWDjI50dX Eivt89XONgGWaJnOqGuRe6JP+ZPxDYUVhC3hCsUCNqUvQhhEbxh8e79xqHo2ef1uOGqxn yBCynzrphW8CtjCo+cI8PC0L3o3VObQ5Cm01nrNeAq+lRAMNFZRtcuVy5FP9d6TbcGpRU ZLPi8YHPwyaZegxJZQHw2Q+dUycxZDpB6J+7JNu5ZidoahS5yQXX/60W1ITR6usrPTw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380598; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=6rNDCjtTDXTD9ejzTAacZYO6yH23uxF3z9OcszsjWoc=; b=q2tGE3txpvzkQ1K5J1yIQCP7iAvcs+YUWhEzAvTmUdbbafSttshfO35y+LDH5gDtXy9X WGWV05yscz8ddaIQcLCapWLdr4HvE0WZQdP99s7hSrUPyCw+mjnHKiTxcHrTi5ELcrzwl bKxmLpfxlBN7KRxA+Dx63294OUu80v3u/5zrzbGbrmV5bC6oAtzWCOJEt82s4z4yN2Yf1 2OZc0jMFsrxFZagJ9KCO9+R218lKmsaMhGj/zABtyhrjlKjciaXy3WNeklZetm+TnjnhW 8Vz9Z8O/0SLAkBD4JrnXczI1gdC3Fv+X9OvRsNw3F83NAwn23+7WcT2+JFwmkwm8cKA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jfHVh7dh; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14E90606A333; Fri, 4 Dec 2026 10:36:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jfHVh7dh Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C5BD1F000CE; Fri, 4 Dec 2026 10:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380597; bh=6rNDCjtTDXTD9ejzTAacZYO6yH23uxF3z9OcszsjWoc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jfHVh7dhLlTTtL0HB3YGydGDfRGqsNaWKoEQ08j4ad/2bivPQflsFIEzxmQKzfyqf L+vWyPlseWqUOKj3Wd/sWIo8OXhzcq/mXI2rtPnqgAmLdlr1wdn9IIVdYpSfAkFOrz +gQvW6/4FBVC0VWJk4n055/HBtoFdCm4nPTYN6MY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mika Kahola , Imre Deak , Joonas Lahtinen Subject: [PATCH 7.3 342/742] drm/i915/mtl+: Use PHY type to identify TypeC ports in PLL ID lookup Date: Fri, 4 Dec 2026 19:03:26 +0900 Message-ID: <20261204100644.145672449@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Imre Deak commit 522b0bdda49901113293f8b7e1aeb1c96ec41d85 upstream. Use the PHY type to identify TypeC ports in the PLL ID lookup function. This ensures that port B takes the TypeC path when an upcoming change sets its PHY type to TypeC on PTL+ platforms with an eDP panel connected to a TypeC PHY. Keep the existing port >= PORT_TC1 case for BMG, where PORT_TC1 has a a TypeC DDI (and so uses the TypeC DDI register addresses, has a C20 PHY and the corresponding TC port -> PLL ID mapping), but this C20 PHY is not a TypeC PHY (i.e. it's not controlled by the TypeC Subsystem and so the driver doesn't need to run the TypeC PHY connect/disconnect, power-on/power-off sequences for the PHY). v2: Keep handling the BMG TypeC DDI but non-TypeC PHY cases. (Sashiko) CC: stable@vger.kernel.org # 6.14+ Reviewed-by: Mika Kahola Signed-off-by: Imre Deak Link: https://patch.msgid.link/20261030114456.651066-1-imre.deak@intel.com (cherry picked from commit 493091a94dca1d832dc0349d1d7e7b3ad369cee7) Signed-off-by: Joonas Lahtinen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c +++ b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c @@ -206,7 +206,8 @@ enum intel_dpll_id icl_tc_port_to_pll_id enum intel_dpll_id mtl_port_to_pll_id(struct intel_display *display, enum port port) { - if (port >= PORT_TC1) + if (port >= PORT_TC1 || + intel_phy_is_tc(display, intel_port_to_phy(display, port))) return icl_tc_port_to_pll_id(intel_port_to_tc(display, port)); switch (port) {