Skip to content

Commit dbcab55

Browse files
ideakjnikula
authored andcommitted
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] (cherry picked from commit 937d02c) Signed-off-by: Jani Nikula <[email protected]>
1 parent 88a173e commit dbcab55

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

24662466
val |= XELPDP_FORWARD_CLOCK_UNGATE;
24672467

2468-
if (is_hdmi_frl(crtc_state->port_clock))
2468+
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) &&
2469+
is_hdmi_frl(crtc_state->port_clock))
24692470
val |= XELPDP_DDI_CLOCK_SELECT(XELPDP_DDI_CLOCK_SELECT_DIV18CLK);
24702471
else
24712472
val |= XELPDP_DDI_CLOCK_SELECT(XELPDP_DDI_CLOCK_SELECT_MAXPCLK);

0 commit comments

Comments
 (0)