diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2011-10-07 14:23:48 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-10-10 04:04:26 -0400 |
commit | d0d0a225e6ad43314c9aa7ea081f76adc5098ad4 (patch) | |
tree | 8f15ee7cb6c32f9c9970006d4d9a55549f764776 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | 5f0a26128d66ef81613fe923d5c288942844ccdc (diff) |
drm/radeon/kms: handle !force case in connector detect more gracefully
When force == false, we don't do load detection in the connector
detect functions. Unforunately, we also return the previous
connector state so we never get disconnect events for DVI-I, DVI-A,
or VGA. Save whether we detected the monitor via load detection
previously and use that to determine whether we return the previous
state or not.
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/radeon_mode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 68820f5f6303..ed0178f03235 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -447,6 +447,7 @@ struct radeon_connector { | |||
447 | struct edid *edid; | 447 | struct edid *edid; |
448 | void *con_priv; | 448 | void *con_priv; |
449 | bool dac_load_detect; | 449 | bool dac_load_detect; |
450 | bool detected_by_load; /* if the connection status was determined by load */ | ||
450 | uint16_t connector_object_id; | 451 | uint16_t connector_object_id; |
451 | struct radeon_hpd hpd; | 452 | struct radeon_hpd hpd; |
452 | struct radeon_router router; | 453 | struct radeon_router router; |