From c7c97f746ce4402ae5857f63c640d691efdc5813 Mon Sep 17 00:00:00 2001 From: Aki Lemmetyinen Date: Fri, 7 Jul 2017 17:32:21 +0300 Subject: [PATCH] drm/radeon Add hotplug disconnected detection to radeon_dvi_detect --- drivers/gpu/drm/radeon/radeon_connectors.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 27affbd..c5a6635 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c @@ -1263,6 +1263,13 @@ radeon_dvi_detect(struct drm_connector *connector, bool force) goto exit; } + if (rdev->family >= CHIP_R600 && + connector->status == connector_status_connected && + !radeon_check_hpd_status_unchanged(connector)) { + ret = connector_status_disconnected; + goto exit; + } + if (radeon_connector->ddc_bus) { dret = radeon_ddc_probe(radeon_connector, false); -- 2.7.4