aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0808-drm-amd-dal-Only-run-detection-on-shortpulse-when-de.patch
blob: 9e87e5f810c98bbefe0ffc4f680ab7a534abd851 (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 6deef291de42d06bd405bac162ea85342251c970 Mon Sep 17 00:00:00 2001
From: Jun Lei <Jun.Lei@amd.com>
Date: Thu, 21 Jan 2016 14:08:25 -0500
Subject: [PATCH 0808/1110] drm/amd/dal: Only run detection on shortpulse when
 dealing with active dongle

Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
index b8f7423..ed2add8 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
@@ -1527,8 +1527,9 @@ bool dc_link_handle_hpd_rx_irq(const struct dc_link *dc_link)
 		status = false;
 	}
 
-	if (hpd_irq_dpcd_data.bytes.sink_cnt.bits.SINK_COUNT
-				!= link->dpcd_sink_count)
+	if (link->public.type == dc_connection_active_dongle &&
+		hpd_irq_dpcd_data.bytes.sink_cnt.bits.SINK_COUNT
+			!= link->dpcd_sink_count)
 		status = true;
 
 	/* reasons for HPD RX:
-- 
2.7.4