Skip to content

Commit 6472e32

Browse files
ideakgregkh
authored andcommitted
drm/i915/mtl: Fix HDMI/DP PLL clock selection
[ Upstream commit dbcab55 ] Select the HDMI specific PLL clock only for HDMI outputs. Fixes: 62618c7 ("drm/i915/mtl: C20 PLL programming") Cc: Mika Kahola <mika.kahola@intel.com> Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231213220526.1828827-1-imre.deak@intel.com (cherry picked from commit 937d02c) Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 80419c9 commit 6472e32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/display/intel_cx0_phy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,8 @@ static void intel_program_port_clock_ctl(struct intel_encoder *encoder,
24202420

24212421
val |= XELPDP_FORWARD_CLOCK_UNGATE;
24222422

2423-
if (is_hdmi_frl(crtc_state->port_clock))
2423+
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) &&
2424+
is_hdmi_frl(crtc_state->port_clock))
24242425
val |= XELPDP_DDI_CLOCK_SELECT(XELPDP_DDI_CLOCK_SELECT_DIV18CLK);
24252426
else
24262427
val |= XELPDP_DDI_CLOCK_SELECT(XELPDP_DDI_CLOCK_SELECT_MAXPCLK);

0 commit comments

Comments
 (0)