Skip to content

Commit

Permalink
drm/radeon: check that we have a clock before PLL setup
Browse files Browse the repository at this point in the history
Partially fixes: https://bugzilla.kernel.org/show_bug.cgi?id=75211

Signed-off-by: Christian König <christian.koenig@amd.com>
  • Loading branch information
Christian König committed May 6, 2014
1 parent aa4c8b3 commit cde1012
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/radeon/atombios_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit cde1012

Please sign in to comment.