]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon/kms: handle !force case in connector detect more gracefully
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Oct 2011 18:23:48 +0000 (14:23 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:26 +0000 (09:42 -0800)
commitf407df3970271253a9ffd96575ec8feada34bf24
treed8241e4f98791ccab7901559afec3383291ad1a5
parente5edf277645a096ccdca1fe6b8ea31831c89b04a
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