From patchwork Wed Sep 22 08:32:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Carlos R. Mafra" X-Patchwork-Id: 198672 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8M8XwYF017483 for ; Wed, 22 Sep 2010 08:34:34 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DFFD39EF24 for ; Wed, 22 Sep 2010 01:33:57 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 790EB9E7BB for ; Wed, 22 Sep 2010 01:33:50 -0700 (PDT) Received: by eye22 with SMTP id 22so84979eye.36 for ; Wed, 22 Sep 2010 01:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=Rex/yXvizECrkRhYIDPC1Q425ZOVCxEDpd93no7K4mg=; b=iLjkVlrrWQyXiSSNcjJOtJLqA/Q8DfiybWxEk7//AU/oV8X5I0KAljuTvd99xhRxo1 dkjUCHy8LZL3XlNxFNA0XAfAiGfKf/JIga5dAO2Rcl5E4ICs+uSIrtH7isCGxVHBf5hw 4wRIWQbpPrUUTLQdv1JNbapXk76XXgWDOEDb0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=LFgOy0fZhKhvFkvhwljWctZFnNg/PcBaHJuURPNQNVVxtQljAUNrZ8KYUf9gDR2JCQ XTsxdZWr/80wqV9wUE+CM6nfMNblxdlntHi33k3OAFNyYj91ZXdv2XrwWaDXRbbPe8d6 6yvyDwpH9sWNiS49DLtGpEWUSQNeE5SixYKl8= Received: by 10.213.2.74 with SMTP id 10mr4984763ebi.45.1285144429587; Wed, 22 Sep 2010 01:33:49 -0700 (PDT) Received: from Pilar.aei.mpg.de (dynamic.aei.mpg.de [194.94.224.254]) by mx.google.com with ESMTPS id u9sm14338664eeh.5.2010.09.22.01.33.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Sep 2010 01:33:48 -0700 (PDT) Date: Wed, 22 Sep 2010 10:32:55 +0200 From: "Carlos R. Mafra" To: Jesse Barnes Message-ID: <20100922083255.GA4032@Pilar.aei.mpg.de> References: <1281175299-1379-1-git-send-email-chris@chris-wilson.co.uk> <1281175299-1379-17-git-send-email-chris@chris-wilson.co.uk> <20100921142200.GA11567@Pilar.aei.mpg.de> <8u3s8d$jl04r0@orsmga001.jf.intel.com> <20100921085544.31041818@jbarnes-desktop> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100921085544.31041818@jbarnes-desktop> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH 16/20] drm/i915: Ensure that while(INREG()) are bounded (v2) X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 22 Sep 2010 08:34:34 +0000 (UTC) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 6ec39a8..56b4c0b 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c @@ -111,6 +111,8 @@ static void intel_lvds_set_power(struct drm_device *dev, bool on) if (on) { I915_WRITE(lvds_reg, I915_READ(lvds_reg) | LVDS_PORT_EN); POSTING_READ(lvds_reg); + I915_WRITE(ctl_reg, I915_READ(ctl_reg) | PANEL_UNLOCK_REGS); + POSTING_READ(ctl_reg); I915_WRITE(ctl_reg, I915_READ(ctl_reg) | POWER_TARGET_ON);