drm/amd/display: add function to convert hw to dpcd lane settings
authorWenjing Liu <wenjing.liu@amd.com>
Fri, 10 Sep 2021 23:18:29 +0000 (19:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Sep 2021 13:30:10 +0000 (09:30 -0400)
commitf6e54f0643fbdf335fcace4dcfd85581e52d9edb
treeef309fd58bf9bec3746b0d03450661c5396cfc6a
parent52dffe2fc1adc35b081119f8eb7eaf8e09c77bf3
drm/amd/display: add function to convert hw to dpcd lane settings

[why]
Unify the code which handles the conversion between hw lane setting
and dpcd lane setting.

v2: squash in unused variable fixes (Alex)

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h