drm/radeon/kms: handle !force case in connector detect more gracefully
commit12bc1875cccdb601083183961533f64a0386370b
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Oct 2011 18:23:48 +0000 (7 14:23 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:35:21 +0000 (11 09:35 -0800)
tree58a511fbe41ab2a5c22434010249536d875796fa
parentc271809eb4a52643cb5618678c81d682c20ad501
drm/radeon/kms: handle !force case in connector detect more gracefully

commit d0d0a225e6ad43314c9aa7ea081f76adc5098ad4 upstream.

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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_mode.h