drm/amd/display: boot up/S4 fix mainlink off before BL.
authorCharlene Liu <charlene.liu@amd.com>
Wed, 31 Jan 2018 21:45:26 +0000 (16:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:59 +0000 (14:19 -0500)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@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/dce110/dce110_hw_sequencer.c

index 54c933b94093e763fa0183f5c90e70db131070b6..53243d5bad9ae49297cae237f42671748cb3dfd6 100644 (file)
@@ -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);
                }