OSDN Git Service

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)
commit7b201d53bc77e8517bd78348385b6362dfa33a4f
tree3a0212501a6b305a5abc19478099d65ffe33d506
parent4bef85d4c9491415b7931407b07f24841c1e0390
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