From patchwork Thu Jun 2 21:20:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ari Savolainen X-Patchwork-Id: 844942 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p52LKILU032215 for ; Thu, 2 Jun 2011 21:20:38 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F6449F374 for ; Thu, 2 Jun 2011 14:20:18 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-gx0-f177.google.com (mail-gx0-f177.google.com [209.85.161.177]) by gabe.freedesktop.org (Postfix) with ESMTP id D6EC89E976 for ; Thu, 2 Jun 2011 14:20:09 -0700 (PDT) Received: by gxk2 with SMTP id 2so657154gxk.36 for ; Thu, 02 Jun 2011 14:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=/SXtAHHDe6+OEIeUdMxNt6mayrUOPAmIL9cB5Ur5m8w=; b=J3W6o8Yduik07zmOKZJJB5iwIUe3XxVXM9Mvjaw2mHP1Ahv1zp5rByoO3OWpRg+qjD WH0/8KMenPnRMh/HVq72qTj7l1Q27EICpjvb+uM7MdhZiKOTxKFnT5pj8H9I0GIYbZBE XdlTMSceQamAoE6E/tqzbV9/p/OQrGr8+MttQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jFGxoF97GQ3YBuwZoqOmu6ZGsCL9uIFogA11H9QNUnvwYiBUYAGZvWyJL9tq/EtSxe 7nVkrtSCYgBp0hv7c51yIHRCxcD2AXcN7K36uQ7DalsKslhDQbUW6hXFc6xMeCErYhbc 9E1DQQDdBLduzvzrv0bCg2zau0LhXpPDIE0f0= MIME-Version: 1.0 Received: by 10.150.189.6 with SMTP id m6mr1255076ybf.52.1307049609080; Thu, 02 Jun 2011 14:20:09 -0700 (PDT) Received: by 10.150.91.21 with HTTP; Thu, 2 Jun 2011 14:20:09 -0700 (PDT) Date: Fri, 3 Jun 2011 00:20:09 +0300 Message-ID: Subject: [PATCH] drm/radeon/kms/atom: initialize dig phy a bit later From: Ari Savolainen To: David Airlie , Alex Deucher , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 02 Jun 2011 21:20:38 +0000 (UTC) Commit ac89af1e1010640db072416c786f97391b85790f caused one of the monitors attached to a dual head radeon gpu to have inverted colors (until the first suspend/resume). Initializing dig phy a bit later fixes the problem. Acked-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_display.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index ae247ee..ddff2cf 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -1346,10 +1346,6 @@ int radeon_modeset_init(struct radeon_device *rdev) return ret; } - /* init dig PHYs */ - if (rdev->is_atom_bios) - radeon_atom_encoder_init(rdev); - /* initialize hpd */ radeon_hpd_init(rdev); @@ -1359,6 +1355,10 @@ int radeon_modeset_init(struct radeon_device *rdev) radeon_fbdev_init(rdev); drm_kms_helper_poll_init(rdev->ddev); + /* init dig PHYs */ + if (rdev->is_atom_bios) + radeon_atom_encoder_init(rdev); + return 0; }