aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0535-drm-amd-dal-Reset-DPCD-sink-count-on-disconnect.patch
blob: 8ac9c23065807dc9e6f1b9c7f22f3901e9930dca (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
From 9990c805161886a9afccff039e99ffbaf9cd3fc9 Mon Sep 17 00:00:00 2001
From: Eric Yang <eric.yang2@amd.com>
Date: Fri, 27 Nov 2015 12:22:36 -0500
Subject: [PATCH 0535/1110] drm/amd/dal: Reset DPCD sink count on disconnect

This fixes active dongle downstream hotplug

Signed-off-by: Eric Yang <eric.yang2@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc_link.c | 2 ++
 1 file changed, 2 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 3484db5..647d141 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link.c
@@ -363,6 +363,8 @@ static void link_unplug(struct core_link *link)
 
 	for (i = 0; i < link->public.sink_count; i++)
 		dc_link_remove_sink(&link->public, link->public.sink[i]);
+
+	link->dpcd_sink_count = 0;
 }
 
 static enum dc_edid_status read_edid(struct core_link *link)
-- 
2.7.4