Skip to content

Commit

Permalink
drm/radeon/kms: fix incorrect logic in DP vs eDP connector checking.
Browse files Browse the repository at this point in the history
This makes displayport work again here.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Feb 1, 2010
1 parent 7087e16 commit 97b94cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/radeon/atombios_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void radeon_dp_set_link_config(struct drm_connector *connector,
struct radeon_connector *radeon_connector;
struct radeon_connector_atom_dig *dig_connector;

if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) ||
if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) &&
(connector->connector_type != DRM_MODE_CONNECTOR_eDP))
return;

Expand Down Expand Up @@ -583,7 +583,7 @@ void dp_link_train(struct drm_encoder *encoder,
u8 train_set[4];
int i;

if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) ||
if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) &&
(connector->connector_type != DRM_MODE_CONNECTOR_eDP))
return;

Expand Down

0 comments on commit 97b94cc

Please sign in to comment.