aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlene Liu <[email protected]>2018-01-31 16:45:26 -0500
committerAlex Deucher <[email protected]>2018-02-19 14:19:59 -0500
commit91d4a12900347636a049038c289c3999a388e082 (patch)
treeae304476fb6f707179e90dbb9bf20f6f03836b1d
parent10dab1934b4b4e56f5b6f07ed021b1ac663c5888 (diff)
drm/amd/display: boot up/S4 fix mainlink off before BL.
Signed-off-by: Charlene Liu <[email protected]> Reviewed-by: Krunoslav Kovac <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
index 54c933b94093..53243d5bad9a 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
@@ -1481,7 +1481,7 @@ void dce110_enable_accelerated_mode(struct dc *dc, struct dc_state *context)
struct dc_link *edp_link = get_link_for_edp(dc);
if (dcb->funcs->get_vga_enabled_displays(dc->ctx->dc_bios) != 0) {
- if (edp_link_to_turnoff) {
+ if (edp_link) {
/*we need turn off backlight before DP_blank and encoder powered down, todo add optimization*/
dc->hwss.edp_backlight_control(edp_link, false);
}