aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0798-drm-amd-dal-return-link-init-in-surface-status.patch
blob: 18d3e4c57f1be63bb50620424faaa7eff5f0cd8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 3ca4be4fb118e496012e25a331671c98dadd47fa Mon Sep 17 00:00:00 2001
From: Mykola Lysenko <Mykola.Lysenko@amd.com>
Date: Fri, 12 Feb 2016 09:31:29 -0500
Subject: [PATCH 0798/1110] drm/amd/dal: return link init in surface status

Signed-off-by: Mykola Lysenko <Mykola.Lysenko@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc_link.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_link.c b/drivers/gpu/drm/amd/dal/dc/core/dc_link.c
index d9b76f6..8203432 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link.c
@@ -1624,6 +1624,8 @@ void core_link_enable_stream(struct pipe_ctx *pipe_ctx)
 
 	dc->hwss.enable_stream(pipe_ctx);
 
+	pipe_ctx->stream->status.link = &pipe_ctx->stream->sink->link->public;
+
 	if (pipe_ctx->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
 		allocate_mst_payload(pipe_ctx);
 }
@@ -1638,6 +1640,8 @@ void core_link_disable_stream(struct pipe_ctx *pipe_ctx)
 
 	dc->hwss.disable_stream(pipe_ctx);
 
+	pipe_ctx->stream->status.link = NULL;
+
 	disable_link(pipe_ctx->stream->sink->link, pipe_ctx->signal);
 }
 
-- 
2.7.4