]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Move link_enc init logic to DC
authorJude Shih <shenshih@amd.com>
Tue, 23 Nov 2021 05:53:00 +0000 (13:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Dec 2021 18:11:14 +0000 (13:11 -0500)
commit334c1b160e4297f12161d965a4be384da55455ed
tree3a0212501a6b305a5abc19478099d65ffe33d506
parent43b9987b2dad94129b29e14d28b0df2f36bf63a5
drm/amd/display: Move link_enc init logic to DC

[Why]

We shouldn't be accessing res_pool funcs from DM level,
therefore, we should create API and let the flow
be done in DC level.

[How]

We create new interface dp_get_link_enc to access and get the correct link_enc

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Jude Shih <shenshih@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h