Commit 97b94ccb authored by Dave Airlie's avatar Dave Airlie

drm/radeon/kms: fix incorrect logic in DP vs eDP connector checking.

This makes displayport work again here.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 7087e162
...@@ -468,7 +468,7 @@ void radeon_dp_set_link_config(struct drm_connector *connector, ...@@ -468,7 +468,7 @@ void radeon_dp_set_link_config(struct drm_connector *connector,
struct radeon_connector *radeon_connector; struct radeon_connector *radeon_connector;
struct radeon_connector_atom_dig *dig_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)) (connector->connector_type != DRM_MODE_CONNECTOR_eDP))
return; return;
...@@ -583,7 +583,7 @@ void dp_link_train(struct drm_encoder *encoder, ...@@ -583,7 +583,7 @@ void dp_link_train(struct drm_encoder *encoder,
u8 train_set[4]; u8 train_set[4];
int i; 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)) (connector->connector_type != DRM_MODE_CONNECTOR_eDP))
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment