drm/radeon/kms: use active device to pick connector for encoder
authorDave Airlie <airlied@linux.ie>
Fri, 29 Jan 2010 05:55:30 +0000 (15:55 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 1 Feb 2010 00:12:26 +0000 (10:12 +1000)
On the W500 we have UNIPHY routed to both DVI and DP, this seems
to always pick the DVI connector which means link training fails.

Switch to using active device to pick the connector, this seems
like it should be safe from a code review, and it fixes things
a bit more here.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_encoders.c

index 82eb551970b92dff7f201ff4cec70beff286eebb..10746c9c80517e45f952aa58b37680b1d17075a3 100644 (file)
@@ -202,7 +202,7 @@ radeon_get_connector_for_encoder(struct drm_encoder *encoder)
 
        list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
                radeon_connector = to_radeon_connector(connector);
-               if (radeon_encoder->devices & radeon_connector->devices)
+               if (radeon_encoder->active_device & radeon_connector->devices)
                        return connector;
        }
        return NULL;