drm/radeon/kms: fix incorrect logic in DP vs eDP connector checking.
authorDave Airlie <airlied@redhat.com>
Fri, 29 Jan 2010 05:31:47 +0000 (15:31 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 1 Feb 2010 00:12:17 +0000 (10:12 +1000)
This makes displayport work again here.

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

index 3eb0ca5..9c023d2 100644 (file)
@@ -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;
 
@@ -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;