OSDN Git Service

drm/amd/display: Fix OTG H timing reset for dcn314
authorDuncan Ma <duncan.ma@amd.com>
Mon, 15 Aug 2022 21:37:32 +0000 (17:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Aug 2022 20:59:55 +0000 (16:59 -0400)
commitd1b4a51a4ca8954f30cf4671b25c4f8637c45600
tree2cfc07adfe7d37885db234512f83b1989dfc8145
parent507fd7c400032b126747a5ae8cca2816d73f009a
drm/amd/display: Fix OTG H timing reset for dcn314

[Why]
When ODM is enabled, H timing control register reset
to 0. Div mode manual field get overwritten causing
no display on certain modes for dcn314.

[How]
Use REG_UPDATE instead of REG_SET to set div_mode
field.

Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Duncan Ma <duncan.ma@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/dcn314/dcn314_optc.c