From patchwork Fri Sep 4 01:43:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhenyu Wang X-Patchwork-Id: 45471 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n841hiHv002918 for ; Fri, 4 Sep 2009 01:43:44 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 52BAFA092C; Thu, 3 Sep 2009 18:43:44 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from azsmga102.ch.intel.com (mga12.intel.com [143.182.124.36]) by gabe.freedesktop.org (Postfix) with ESMTP id 3380FA0927 for ; Thu, 3 Sep 2009 18:43:41 -0700 (PDT) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 03 Sep 2009 18:43:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,271,1249282800"; d="scan'208";a="183952808" Received: from debian-i915.sh.intel.com (HELO localhost.localdomain) ([10.239.36.110]) by azsmga001.ch.intel.com with ESMTP; 03 Sep 2009 18:43:40 -0700 From: Zhenyu Wang To: intel-gfx@lists.freedesktop.org Date: Fri, 4 Sep 2009 09:43:35 +0800 Message-Id: <1252028615-13785-2-git-send-email-zhenyuw@linux.intel.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1252028615-13785-1-git-send-email-zhenyuw@linux.intel.com> References: <1252028615-13785-1-git-send-email-zhenyuw@linux.intel.com> Cc: Alan Stern , linux-kernel@vger.kernel.org, Stable Team Subject: [Intel-gfx] [PATCH 2/3] drm/i915: remove restore in resume X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Don't need extra restore like for intel_agp. Cc: Stable Team Cc: Alan Stern Signed-off-by: Zhenyu Wang --- drivers/gpu/drm/i915/i915_drv.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index dbe568c..e8cf18d 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -97,8 +97,6 @@ static int i915_resume(struct drm_device *dev) struct drm_i915_private *dev_priv = dev->dev_private; int ret = 0; - pci_set_power_state(dev->pdev, PCI_D0); - pci_restore_state(dev->pdev); if (pci_enable_device(dev->pdev)) return -1; pci_set_master(dev->pdev);