]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Avoid programming DTO if Refclk is 0
authorChris Park <chris.park@amd.com>
Tue, 28 May 2024 19:56:22 +0000 (15:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:15 +0000 (16:17 -0400)
commitd3d996ec8905a0098f160d7a4dcca2b54d48d697
tree780f5d4a9933bdca7af272e2c5748069bbdf1bfa
parentf2034ebb27c5222511b2225b10348ccf6f541a7f
drm/amd/display: Avoid programming DTO if Refclk is 0

[Why]
Reference clock, either DPREFCLK or DTBCLK can be a value of 0
which then will encounter division by 0.

[How]
Avoid further calculation and programming if refclk is not
populated.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Chris Park <chris.park@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/dccg/dcn401/dcn401_dccg.c