drm/amd/display: power_down_Hw need signal type to turnoff backlight
authorAndrew Jiang <Andrew.Jiang@amd.com>
Wed, 13 Sep 2017 15:36:34 +0000 (11:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:41:32 +0000 (16:41 -0400)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@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 590b2ad3710592e1cc33697086453a64ec924fdd..d83a330712f7c621f0c0a088b8f4be7b847fff2a 100644 (file)
@@ -1171,6 +1171,7 @@ static void power_down_encoders(struct dc *dc)
 {
        int i;
        enum connector_id connector_id;
+       enum signal_type signal = SIGNAL_TYPE_NONE;
        for (i = 0; i < dc->link_count; i++) {
                connector_id = dal_graphics_object_id_get_connector_id(dc->links[i]->link_id);
                if ((connector_id == CONNECTOR_ID_DISPLAY_PORT) ||
@@ -1178,10 +1179,12 @@ static void power_down_encoders(struct dc *dc)
 
                        if (!dc->links[i]->wa_flags.dp_keep_receiver_powered)
                                dp_receiver_power_ctrl(dc->links[i], false);
+                       if (connector_id == CONNECTOR_ID_EDP)
+                               signal = SIGNAL_TYPE_EDP;
                }
 
                dc->links[i]->link_enc->funcs->disable_output(
-                               dc->links[i]->link_enc, SIGNAL_TYPE_NONE);
+                               dc->links[i]->link_enc, signal);
        }
 }