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)
commite49f69363adf8920883fff7e8ffecb802d897c6b
tree8ee70b90ae26c7bd2cb7f9a94befdd2ed58da32c
parente5490464f45db8b8006bc62d29ec9280debd0ef9
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