mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
drm/amdgpu/display bail early in dm_pp_get_static_clocks
[ Upstream commit 376814f5fcf1aadda501d1413d56e8af85d19a97 ] 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:
parent
87834546ea
commit
fae763f135
1 changed files with 2 additions and 0 deletions
|
|
@ -530,6 +530,8 @@ bool dm_pp_get_static_clocks(
|
|||
&pp_clk_info);
|
||||
else if (adev->smu.funcs)
|
||||
ret = smu_get_current_clocks(&adev->smu, &pp_clk_info);
|
||||
else
|
||||
return false;
|
||||
if (ret)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue