summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-05-02 14:27:42 +0200
committerChristian König <christian.koenig@amd.com>2014-05-06 12:18:42 +0200
commitcde10122dc126a223e783f0b40bdb08cc332ab17 (patch)
treed0072c3a7c8fd5eec362572240af3970beb349d1 /drivers/gpu
parentaa4c8b36e5fcf70ba5ec7d175da19dac4a33c51a (diff)
downloadop-kernel-dev-cde10122dc126a223e783f0b40bdb08cc332ab17.zip
op-kernel-dev-cde10122dc126a223e783f0b40bdb08cc332ab17.tar.gz
drm/radeon: check that we have a clock before PLL setup
Partially fixes: https://bugzilla.kernel.org/show_bug.cgi?id=75211 Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/atombios_crtc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c
index 229be38..b7983aa 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -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))
OpenPOWER on IntegriCloud