drm/amd/display: early return if not in vga mode in disable_vga
authorEric Yang <Eric.Yang2@amd.com>
Wed, 28 Feb 2018 19:45:36 +0000 (14:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 20:08:46 +0000 (15:08 -0500)
commite18d3086733bd150f87594a754ae983329fb0ba1
treed176bbf8b13924d2452720497f5f5af2a8b1e91e
parentd54ee946032be661b7645f30f7fa6ae10caa9bc3
drm/amd/display: early return if not in vga mode in disable_vga

The work around for hw bug causes S3 resume failure. Don't execute
disable vga logic if not in vga mode.

Signed-off-by: Eric Yang <Eric.Yang2@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/dce/dce_hwseq.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c