mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
drm/amdgpu/display bail early in dm_pp_get_static_clocks
[ Upstream commit 376814f5fc ]
If there are no supported callbacks. We'll fall back to the
nominal clocks.
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1170
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aeb79d98b4
commit
c2013b737b
@@ -530,6 +530,8 @@ bool dm_pp_get_static_clocks(
|
||||
&pp_clk_info);
|
||||
else if (adev->smu.ppt_funcs)
|
||||
ret = smu_get_current_clocks(&adev->smu, &pp_clk_info);
|
||||
else
|
||||
return false;
|
||||
if (ret)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user