From 6deef291de42d06bd405bac162ea85342251c970 Mon Sep 17 00:00:00 2001 From: Jun Lei 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 --- 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