drm/radeon/kms: set DP link config properly for DP bridges
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 16 Jun 2011 14:06:17 +0000 (10:06 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Jun 2011 23:28:11 +0000 (09:28 +1000)
DP clock and lanes were not set properly for DP bridges.

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

index aa2450ba0ff892a60e4d044f4f406c3b7a0ee420..f55b64cb59d1d0170b25e35605354bca56bfd3ab 100644 (file)
@@ -367,7 +367,8 @@ static bool radeon_atom_mode_fixup(struct drm_encoder *encoder,
        }
 
        if (ASIC_IS_DCE3(rdev) &&
-           (radeon_encoder->active_device & (ATOM_DEVICE_DFP_SUPPORT | ATOM_DEVICE_LCD_SUPPORT))) {
+           ((radeon_encoder->active_device & (ATOM_DEVICE_DFP_SUPPORT | ATOM_DEVICE_LCD_SUPPORT)) ||
+            radeon_encoder_is_dp_bridge(encoder))) {
                struct drm_connector *connector = radeon_get_connector_for_encoder(encoder);
                radeon_dp_set_link_config(connector, mode);
        }