Skip to content

Commit

Permalink
drm/radeon/kms: use active device to pick connector for encoder
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
airlied committed Feb 1, 2010
1 parent 97b94cc commit 43c33ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_encoders.c
Expand Up @@ -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;
Expand Down

0 comments on commit 43c33ed

Please sign in to comment.