* [PATCH] PCI / PM: Clean up outdated comments in pci_target_state()
@ 2018-05-21 11:11 Rafael J. Wysocki
2018-05-22 13:06 ` Bjorn Helgaas
0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2018-05-21 11:11 UTC (permalink / raw)
To: Linux PCI; +Cc: Bjorn Helgaas, Linux PM, LKML
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Two comments in pci_target_state() are outdated, as the function
doesn't set the target power state for the device any more, only
finds one for it, so fix them accordingly.
Reported-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
drivers/pci/pci.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Index: linux-pm/drivers/pci/pci.c
===================================================================
--- linux-pm.orig/drivers/pci/pci.c
+++ linux-pm/drivers/pci/pci.c
@@ -2025,8 +2025,7 @@ static pci_power_t pci_target_state(stru
if (platform_pci_power_manageable(dev)) {
/*
- * Call the platform to choose the target state of the device
- * and enable wake-up from this state if supported.
+ * Call the platform to find the target state for the device.
*/
pci_power_t state = platform_pci_choose_state(dev);
@@ -2059,8 +2058,7 @@ static pci_power_t pci_target_state(stru
if (wakeup) {
/*
* Find the deepest state from which the device can generate
- * wake-up events, make it the target state and enable device
- * to generate PME#.
+ * PME#.
*/
if (dev->pme_support) {
while (target_state
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PCI / PM: Clean up outdated comments in pci_target_state()
2018-05-21 11:11 [PATCH] PCI / PM: Clean up outdated comments in pci_target_state() Rafael J. Wysocki
@ 2018-05-22 13:06 ` Bjorn Helgaas
2018-05-22 15:21 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2018-05-22 13:06 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: Linux PCI, Bjorn Helgaas, Linux PM, LKML
On Mon, May 21, 2018 at 01:11:12PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Two comments in pci_target_state() are outdated, as the function
> doesn't set the target power state for the device any more, only
> finds one for it, so fix them accordingly.
>
> Reported-by: Bjorn Helgaas <bhelgaas@google.com>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
I assume you'll merge this; let me know if you'd rather that I take it.
> ---
> drivers/pci/pci.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> Index: linux-pm/drivers/pci/pci.c
> ===================================================================
> --- linux-pm.orig/drivers/pci/pci.c
> +++ linux-pm/drivers/pci/pci.c
> @@ -2025,8 +2025,7 @@ static pci_power_t pci_target_state(stru
>
> if (platform_pci_power_manageable(dev)) {
> /*
> - * Call the platform to choose the target state of the device
> - * and enable wake-up from this state if supported.
> + * Call the platform to find the target state for the device.
> */
> pci_power_t state = platform_pci_choose_state(dev);
>
> @@ -2059,8 +2058,7 @@ static pci_power_t pci_target_state(stru
> if (wakeup) {
> /*
> * Find the deepest state from which the device can generate
> - * wake-up events, make it the target state and enable device
> - * to generate PME#.
> + * PME#.
> */
> if (dev->pme_support) {
> while (target_state
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PCI / PM: Clean up outdated comments in pci_target_state()
2018-05-22 13:06 ` Bjorn Helgaas
@ 2018-05-22 15:21 ` Rafael J. Wysocki
0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2018-05-22 15:21 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: Rafael J. Wysocki, Linux PCI, Bjorn Helgaas, Linux PM, LKML
On Tue, May 22, 2018 at 3:06 PM, Bjorn Helgaas <helgaas@kernel.org> wrote:
> On Mon, May 21, 2018 at 01:11:12PM +0200, Rafael J. Wysocki wrote:
>> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>>
>> Two comments in pci_target_state() are outdated, as the function
>> doesn't set the target power state for the device any more, only
>> finds one for it, so fix them accordingly.
>>
>> Reported-by: Bjorn Helgaas <bhelgaas@google.com>
>> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
>
> I assume you'll merge this; let me know if you'd rather that I take it.
I will take it, thanks!
Can you have a look at https://patchwork.kernel.org/patch/10408977/
too, please, while at it?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-22 15:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-21 11:11 [PATCH] PCI / PM: Clean up outdated comments in pci_target_state() Rafael J. Wysocki
2018-05-22 13:06 ` Bjorn Helgaas
2018-05-22 15:21 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®