From 89d05e2c475630adda90240b70b0122df3680bf6 Mon Sep 17 00:00:00 2001 From: Jun Lei Date: Thu, 21 Jan 2016 14:08:25 -0500 Subject: [PATCH 1374/1565] drm/amd/dal: Only run detection on shortpulse when dealing with active dongle Change-Id: Ia2f24e160411154134c8a78d541f56bc33081f6b Acked-by: Harry Wentland --- 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: -- 1.9.1