From patchwork Mon Mar 23 21:32:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Wysocki X-Patchwork-Id: 13840 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 n2NLWhiA004965 for ; Mon, 23 Mar 2009 21:33:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758408AbZCWVdN (ORCPT ); Mon, 23 Mar 2009 17:33:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758874AbZCWVdN (ORCPT ); Mon, 23 Mar 2009 17:33:13 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:33262 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758408AbZCWVdL (ORCPT ); Mon, 23 Mar 2009 17:33:11 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by ogre.sisk.pl (Postfix) with ESMTP id 38E2712E231; Mon, 23 Mar 2009 19:53:16 +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 08777-07; Mon, 23 Mar 2009 19:53:06 +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 0A45612E427; Mon, 23 Mar 2009 19:53:06 +0100 (CET) From: "Rafael J. Wysocki" To: Jesse Barnes Subject: [RFC][PATCH 2/2] radeonfb: Use platform_pci_set_power_state() Date: Mon, 23 Mar 2009 22:32:55 +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 , Linus Torvalds , Andrew Morton References: <200903210003.55161.rjw@sisk.pl> <200903222208.22434.rjw@sisk.pl> <200903232230.10831.rjw@sisk.pl> In-Reply-To: <200903232230.10831.rjw@sisk.pl> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200903232232.56772.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 platform_pci_set_power_state() 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); + platform_pci_set_power_state(rinfo->pdev, PCI_D2); } else { printk(KERN_DEBUG "radeonfb (%s): switching to D0 state...\n", pci_name(rinfo->pdev));