From patchwork Wed Mar 25 00:42:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Wysocki X-Patchwork-Id: 14196 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2P0mAOs018030 for ; Wed, 25 Mar 2009 00:48:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756413AbZCYAmf (ORCPT ); Tue, 24 Mar 2009 20:42:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758913AbZCYAme (ORCPT ); Tue, 24 Mar 2009 20:42:34 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:40043 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758929AbZCYAmc (ORCPT ); Tue, 24 Mar 2009 20:42:32 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by ogre.sisk.pl (Postfix) with ESMTP id A7DB912A3DF; Tue, 24 Mar 2009 23:02:12 +0100 (CET) Received: from ogre.sisk.pl ([127.0.0.1]) by localhost (ogre.sisk.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23753-03; Tue, 24 Mar 2009 23:01:57 +0100 (CET) Received: from tosh.localnet (220-bem-13.acn.waw.pl [82.210.184.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ogre.sisk.pl (Postfix) with ESMTP id 0D62E12E46A; Tue, 24 Mar 2009 23:01:56 +0100 (CET) From: "Rafael J. Wysocki" To: Jesse Barnes Subject: [RFC][PATCH 2/2] radeonfb: Use __pci_complete_power_transition() Date: Wed, 25 Mar 2009 01:42:08 +0100 User-Agent: KMail/1.11.1 (Linux/2.6.29-rc8-tst; KDE/4.2.1; x86_64; ; ) Cc: Benjamin Herrenschmidt , Linux PCI , pm list , LKML , Andrew Morton References: <200903250138.53234.linux-pci-owner@vger.kernel.org> In-Reply-To: <200903250138.53234.linux-pci-owner@vger.kernel.org> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200903250142.09545.rjw@sisk.pl> X-Virus-Scanned: amavisd-new at ogre.sisk.pl using MkS_Vir for Linux Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Rafael J. Wysocki Use __pci_complete_power_transition() to finalize the transition into D2 after programming the PMCSR of the device directly. Signed-off-by: Rafael J. Wysocki --- drivers/video/aty/radeon_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/drivers/video/aty/radeon_pm.c =================================================================== --- linux-2.6.orig/drivers/video/aty/radeon_pm.c +++ linux-2.6/drivers/video/aty/radeon_pm.c @@ -2582,7 +2582,7 @@ static void radeon_set_suspend(struct ra * calling pci_set_power_state() */ radeonfb_whack_power_state(rinfo, PCI_D2); - pci_set_power_state(rinfo->pdev, PCI_D2); + __pci_complete_power_transition(rinfo->pdev, PCI_D2); } else { printk(KERN_DEBUG "radeonfb (%s): switching to D0 state...\n", pci_name(rinfo->pdev));