diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2011-10-07 14:23:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-11 09:35:20 -0800 |
commit | c271809eb4a52643cb5618678c81d682c20ad501 (patch) | |
tree | 5560cb4599899a5ee25768b3397b589629ec91d0 /drivers/gpu/drm/radeon | |
parent | 97e4a783f6e9b5d99123c93233b4592278439377 (diff) | |
download | kernel_samsung_crespo-c271809eb4a52643cb5618678c81d682c20ad501.zip kernel_samsung_crespo-c271809eb4a52643cb5618678c81d682c20ad501.tar.gz kernel_samsung_crespo-c271809eb4a52643cb5618678c81d682c20ad501.tar.bz2 |
drm/radeon/kms: bail early in dvi_detect for digital only connectors
commit 5f0a26128d66ef81613fe923d5c288942844ccdc upstream.
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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 05b8b2c..c063da3 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c @@ -950,6 +950,11 @@ radeon_dvi_detect(struct drm_connector *connector, bool force) if ((ret == connector_status_connected) && (radeon_connector->use_digital == true)) goto out; + /* DVI-D and HDMI-A are digital only */ + if ((connector->connector_type == DRM_MODE_CONNECTOR_DVID) || + (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA)) + goto out; + if (!force) { ret = connector->status; goto out; |