]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Set OPP default values in init_hw
authorAndrew Jiang <Andrew.Jiang@amd.com>
Tue, 14 Nov 2017 17:40:20 +0000 (12:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:48:14 +0000 (12:48 -0500)
commit5cbb6e27a8be09c3ddf3b2a42a02342f2d169d30
tree489363b1d1b1f5ce72670729d2873e8d5e7b2fe6
parenta64370237f088f7dc4688b162891d8934c12835f
drm/amd/display: Set OPP default values in init_hw

On S3 resume, we do not reconstruct OPP, but we do need to
reinitialize some of its values to the default ones.
Therefore, move those lines out of the OPP constructor and
into init_hw.

Also reset the hubp power gated flag, since nothing is
power gated at init_hw.

Signed-off-by: Andrew Jiang <Andrew.Jiang@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c