]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: use proper formula to calculate bandwidth from timing
authorWenjing Liu <Wenjing.Liu@amd.com>
Thu, 21 Mar 2019 17:05:36 +0000 (13:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:27 +0000 (13:53 -0500)
commit4f013e6c20857293342e748ebff4b97eb3c3f075
tree8ee70b90ae26c7bd2cb7f9a94befdd2ed58da32c
parent7bd6779462f5057deebc702a3ce332b86ef0e10d
drm/amd/display: use proper formula to calculate bandwidth from timing

[why]
The existing calculation uses a wrong formula to
calculate bandwidth from timing.

[how]
Expose the existing proper function that calculates the bandwidth,
so dc_link can use it to calculate timing bandwidth correctly.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc_link.h