drm/amd/display: link_status not align when power off encoder
authorPaul Hsieh <paul.hsieh@amd.com>
Fri, 8 May 2020 06:32:11 +0000 (14:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 May 2020 18:00:50 +0000 (14:00 -0400)
[Why]
The link_status is incorrect cause driver power off eDP when backlight
on. Some eDP panels may show garbage on screen.

[How]
Correct link_status when power off encoder

Signed-off-by: Paul Hsieh <paul.hsieh@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

index a475e52..2ec5e9e 100644 (file)
@@ -1443,6 +1443,8 @@ static void power_down_encoders(struct dc *dc)
 
                dc->links[i]->link_enc->funcs->disable_output(
                                dc->links[i]->link_enc, signal);
+
+               dc->links[i]->link_status.link_active = false;
        }
 }