drm/radeon: fix eDP clk and lane setup for scaled modes
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Dec 2012 21:50:28 +0000 (16:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 8 Dec 2012 00:48:23 +0000 (19:48 -0500)
Need to use the adjusted mode since we are sending native
timing and using the scaler for non-native modes.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
cc: stable@vger.kernel.org

drivers/gpu/drm/radeon/atombios_encoders.c

index 010bae19554ad204537a31a5e02584d130086ff3..4552d4aff3178ac7c6f90972c0711340837dfacf 100644 (file)
@@ -340,7 +340,7 @@ static bool radeon_atom_mode_fixup(struct drm_encoder *encoder,
            ((radeon_encoder->active_device & (ATOM_DEVICE_DFP_SUPPORT | ATOM_DEVICE_LCD_SUPPORT)) ||
             (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE))) {
                struct drm_connector *connector = radeon_get_connector_for_encoder(encoder);
-               radeon_dp_set_link_config(connector, mode);
+               radeon_dp_set_link_config(connector, adjusted_mode);
        }
 
        return true;