Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cde10122 authored by Christian König's avatar Christian König
Browse files

drm/radeon: check that we have a clock before PLL setup

parent aa4c8b36
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1901,6 +1901,9 @@ int atombios_crtc_mode_set(struct drm_crtc *crtc,
	    (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT))
		is_tvcv = true;

	if (!radeon_crtc->adjusted_clock)
		return -EINVAL;

	atombios_crtc_set_pll(crtc, adjusted_mode);

	if (ASIC_IS_DCE4(rdev))