Skip to content

Commit 937d02c

Browse files
committed
drm/i915/mtl: Fix HDMI/DP PLL clock selection
Select the HDMI specific PLL clock only for HDMI outputs. Fixes: 62618c7 ("drm/i915/mtl: C20 PLL programming") Cc: Mika Kahola <[email protected]> Cc: Radhakrishna Sripada <[email protected]> Reviewed-by: Radhakrishna Sripada <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 8cd53c6 commit 937d02c

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
@@ -2468,7 +2468,8 @@ static void intel_program_port_clock_ctl(struct intel_encoder *encoder,
24682468

24692469
val |= XELPDP_FORWARD_CLOCK_UNGATE;
24702470

2471-
if (is_hdmi_frl(crtc_state->port_clock))
2471+
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) &&
2472+
is_hdmi_frl(crtc_state->port_clock))
24722473
val |= XELPDP_DDI_CLOCK_SELECT(XELPDP_DDI_CLOCK_SELECT_DIV18CLK);
24732474
else
24742475
val |= XELPDP_DDI_CLOCK_SELECT(XELPDP_DDI_CLOCK_SELECT_MAXPCLK);

0 commit comments

Comments
 (0)