drm/dp_mst: Use kHz as link rate units when settig source max link caps at init
authorNikola Cornij <nikola.cornij@amd.com>
Wed, 12 May 2021 21:00:11 +0000 (17:00 -0400)
committerLyude Paul <lyude@redhat.com>
Thu, 27 May 2021 19:30:59 +0000 (15:30 -0400)
commit71b970c8680732b3dec1f9506087ef56bd6a123d
treecffbf4144baa9029b8171fd5bf1be5d2595ab601
parentffa52910faff64f2070af42c22d782c4572d889e
drm/dp_mst: Use kHz as link rate units when settig source max link caps at init

[why]
Link rate in kHz is what is eventually required to calculate the link
bandwidth, which makes kHz a more generic unit. This should also make
forward-compatibility with new DP standards easier.

[how]
- Replace 'link rate DPCD code' with 'link rate in kHz' when used with
drm_dp_mst_topology_mgr_init()
- Add/remove related DPCD code conversion from/to kHz where applicable

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210512210011.8425-2-nikola.cornij@amd.com
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
drivers/gpu/drm/drm_dp_mst_topology.c
drivers/gpu/drm/i915/display/intel_dp_mst.c
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/radeon/radeon_dp_mst.c
include/drm/drm_dp_mst_helper.h