mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
aa4c8b36e5
commit
cde10122dc
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue