diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2011-10-07 14:23:47 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-10-10 04:04:10 -0400 |
commit | 5f0a26128d66ef81613fe923d5c288942844ccdc (patch) | |
tree | be54285714646deb94dd8dd6942945b3a1ea7040 /drivers/gpu/drm/radeon | |
parent | 286e0c94f9c3f292cb38a977fbbde3433347a868 (diff) |
drm/radeon/kms: bail early in dvi_detect for digital only connectors
DVI-D and HDMI-A are digital only, so there's no need to
attempt analog load detect. Also, skip bail before the
!force check, or we fail to get a disconnect events.
The next patches in the series attempt to fix disconnect
events for connectors with analog support (DVI-I, HDMI-B,
DVI-A).
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=41561
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_connectors.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index c4b8741dbf58..fbcf21dd2c23 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c | |||
@@ -959,6 +959,11 @@ radeon_dvi_detect(struct drm_connector *connector, bool force) | |||
959 | if ((ret == connector_status_connected) && (radeon_connector->use_digital == true)) | 959 | if ((ret == connector_status_connected) && (radeon_connector->use_digital == true)) |
960 | goto out; | 960 | goto out; |
961 | 961 | ||
962 | /* DVI-D and HDMI-A are digital only */ | ||
963 | if ((connector->connector_type == DRM_MODE_CONNECTOR_DVID) || | ||
964 | (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA)) | ||
965 | goto out; | ||
966 | |||
962 | if (!force) { | 967 | if (!force) { |
963 | ret = connector->status; | 968 | ret = connector->status; |
964 | goto out; | 969 | goto out; |