drm/amd/display: Do DC mode-change check after stream creation
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 21 Nov 2017 18:19:04 +0000 (13:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Dec 2017 19:46:18 +0000 (14:46 -0500)
commita97599a4a292d687b35434993f1367b2d142b1b4
tree760622d8e0800da8bbd6dd7dedfb6e7a2aa0d359
parentb58958a79bb5e976c23e11f62143fc7118e19d96
drm/amd/display: Do DC mode-change check after stream creation

Do DC level mode change checks (via dc_stream_state) only when creating
a new stream, as this check is uneccessary without a new dc_stream_state
anyways. Doing so better demonstrates the intent of this mode-change
check, in comparison to guarding it with the 'enable' flag.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c