drm/radeon/kms: handle !force case in connector detect more gracefully
commitd0d0a225e6ad43314c9aa7ea081f76adc5098ad4
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Oct 2011 18:23:48 +0000 (7 14:23 -0400)
committerDave Airlie <airlied@redhat.com>
Mon, 10 Oct 2011 08:04:26 +0000 (10 09:04 +0100)
tree8f15ee7cb6c32f9c9970006d4d9a55549f764776
parent5f0a26128d66ef81613fe923d5c288942844ccdc
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>
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_mode.h