drm/amd/display: fix dcn-specific clk_mgr init_clocks
authorMartin Leung <martin.leung@amd.com>
Sun, 28 Jul 2019 15:09:11 +0000 (11:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:54:21 +0000 (10:54 -0500)
commit39bdac36cc139dfaf4ff324250319b79c6c224b8
tree743a8279dcdde66a81ca8e945a2c407c4394366c
parent8a31820b12187c7e31c52e8a00075359d9efac52
drm/amd/display: fix dcn-specific clk_mgr init_clocks

[Why]
underflow seen on certain monitor setups caused by making dcnxx_init_hw
generic

[How]
by moving dcn20_init_hw into dcn10, we added a dcn-specific clk_mgr
init (dc->clk_mgr->funcs->init_clocks()). Thus, put old clk_mgr
memset in an else statement so both memsets don't get set

Signed-off-by: Martin Leung <martin.leung@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@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/clk_mgr/dcn10/rv1_clk_mgr.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c