Skip to content

Commit ecd6795

Browse files
committed
drm/radeon: fix ordering in pll picking on dce4+
No functional change, but re-order the cases so they evaluate properly due to the way the DCE macros work. Noticed by kallisti5 on IRC. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 81ee8fb commit ecd6795

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/radeon/atombios_crtc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,12 +1531,12 @@ static int radeon_atom_pick_pll(struct drm_crtc *crtc)
15311531
* crtc virtual pixel clock.
15321532
*/
15331533
if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(test_encoder))) {
1534-
if (ASIC_IS_DCE5(rdev))
1535-
return ATOM_DCPLL;
1534+
if (rdev->clock.dp_extclk)
1535+
return ATOM_PPLL_INVALID;
15361536
else if (ASIC_IS_DCE6(rdev))
15371537
return ATOM_PPLL0;
1538-
else if (rdev->clock.dp_extclk)
1539-
return ATOM_PPLL_INVALID;
1538+
else if (ASIC_IS_DCE5(rdev))
1539+
return ATOM_DCPLL;
15401540
}
15411541
}
15421542
}

0 commit comments

Comments
 (0)