From: "Rafael J. Wysocki" <rjw@sisk.pl> To: Jesse Barnes <jbarnes@virtuousgeek.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>, Linux PCI <linux-pci@vger.kernel.org>, pm list <linux-pm@lists.linux-foundation.org>, LKML <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@linux-foundation.org> Subject: [RFC][PATCH 2/2] radeonfb: Use __pci_complete_power_transition() Date: Wed, 25 Mar 2009 01:42:08 +0100 [thread overview] Message-ID: <200903250142.09545.rjw@sisk.pl> (raw) In-Reply-To: <200903250138.53234.linux-pci-owner@vger.kernel.org> From: Rafael J. Wysocki <rjw@sisk.pl> 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 <rjw@sisk.pl> --- drivers/video/aty/radeon_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));
WARNING: multiple messages have this Message-ID (diff)
From: "Rafael J. Wysocki" <rjw@sisk.pl> To: Jesse Barnes <jbarnes@virtuousgeek.org> Cc: pm list <linux-pm@lists.linux-foundation.org>, LKML <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Linux PCI <linux-pci@vger.kernel.org> Subject: [RFC][PATCH 2/2] radeonfb: Use __pci_complete_power_transition() Date: Wed, 25 Mar 2009 01:42:08 +0100 [thread overview] Message-ID: <200903250142.09545.rjw@sisk.pl> (raw) In-Reply-To: <200903250138.53234.linux-pci-owner@vger.kernel.org> From: Rafael J. Wysocki <rjw@sisk.pl> 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 <rjw@sisk.pl> --- drivers/video/aty/radeon_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));
next prev parent reply other threads:[~2009-03-25 0:54 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-03-25 0:38 [RFC][PATCH 0/2] PCI PM: Fix radeonfb vs pci_set_power_state() problem Rafael J. Wysocki 2009-03-25 0:41 ` [RFC][PATCH 1/2] PCI PM: Introduce __pci_[start|complete]_power_transition() Rafael J. Wysocki 2009-03-25 0:41 ` Rafael J. Wysocki 2009-03-26 12:15 ` Rafael J. Wysocki 2009-03-26 12:15 ` Rafael J. Wysocki 2009-03-25 0:42 ` Rafael J. Wysocki [this message] 2009-03-25 0:42 ` [RFC][PATCH 2/2] radeonfb: Use __pci_complete_power_transition() Rafael J. Wysocki
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200903250142.09545.rjw@sisk.pl \ --to=rjw@sisk.pl \ --cc=akpm@linux-foundation.org \ --cc=benh@kernel.crashing.org \ --cc=jbarnes@virtuousgeek.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pci@vger.kernel.org \ --cc=linux-pm@lists.linux-foundation.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.