]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove early return from dm_late_init
authorRoman Li <roman.li@amd.com>
Thu, 27 Aug 2020 21:54:57 +0000 (17:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:52:41 +0000 (17:52 -0400)
commitbe07fc5d18d84c6d750514505de9c0cfc8d07f1d
treeadbcf60f257407e2e7c13fcc35fe48a834bc5929
parent1b9349ffc2518b22d00892ea08067d4446d561a3
drm/amd/display: remove early return from dm_late_init

[Why]
ABM feature initialization was not executed due to early return.

dm_late_init() had an early return in case if DMCU is not used.
With the implementation of ABM on DMUB, DMCU can be disabled
but ABM still needs to be initialized.

[How]
Remove verification for DMCU from the top of the function.
The existing logic will handle the case when DMCU is not used.

Signed-off-by: Roman Li <roman.li@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c