]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:44 +0000 (11:17 -0800)
commit87dba21c83bcff04e159ac00b5efb6e7e239564f
tree3562d1912f4dac5aacb60188addc20ffbc924ccd
parente11e56fc5e417ef294dabf58285a2e0a97ee6340
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