drm/amd/display: Do not program front-end twice
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Fri, 10 Nov 2017 21:12:08 +0000 (16:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:48:11 +0000 (12:48 -0500)
commit27b3f4fc91e1df74aa15f669c9b032d73dee2ef8
treee2a2038612e973e8072b605eb4fb4e01d8929108
parent000b59ea9f8360a3e82efe1f4adef4d215ba18c8
drm/amd/display: Do not program front-end twice

The sequence of front-end > back-end > front-end programming will
program the front-end more than once. Add a mode_changed flag, and use
it to determine whether the front-end should be programmed before, or
after back-end.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@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/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_stream.h