* [PATCH] PM / PCI: Do not resume any devices in pci_pm_prepare()
@ 2017-09-24 23:33 Rafael J. Wysocki
2017-09-26 21:34 ` Bjorn Helgaas
2017-09-26 21:35 ` Bjorn Helgaas
0 siblings, 2 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2017-09-24 23:33 UTC (permalink / raw)
To: Linux PCI, Bjorn Helgaas; +Cc: Alan Stern, Linux PM, Mika Westerberg, LKML
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
It should not be necessary to resume devices with ignore_children set
in pci_pm_prepare(), because they should be resumed explcitly by
their children drivers during suspend if need be and they will be
resumed by pci_pm_suspend() after that anyway, so avoid doing that.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
drivers/pci/pci-driver.c | 7 -------
1 file changed, 7 deletions(-)
Index: linux-pm/drivers/pci/pci-driver.c
===================================================================
--- linux-pm.orig/drivers/pci/pci-driver.c
+++ linux-pm/drivers/pci/pci-driver.c
@@ -680,13 +680,6 @@ static int pci_pm_prepare(struct device
{
struct device_driver *drv = dev->driver;
- /*
- * Devices having power.ignore_children set may still be necessary for
- * suspending their children in the next phase of device suspend.
- */
- if (dev->power.ignore_children)
- pm_runtime_resume(dev);
-
if (drv && drv->pm && drv->pm->prepare) {
int error = drv->pm->prepare(dev);
if (error)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] PM / PCI: Do not resume any devices in pci_pm_prepare()
2017-09-24 23:33 [PATCH] PM / PCI: Do not resume any devices in pci_pm_prepare() Rafael J. Wysocki
@ 2017-09-26 21:34 ` Bjorn Helgaas
2017-09-26 21:39 ` Rafael J. Wysocki
2017-09-26 21:35 ` Bjorn Helgaas
1 sibling, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2017-09-26 21:34 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Linux PCI, Bjorn Helgaas, Alan Stern, Linux PM, Mika Westerberg, LKML
On Mon, Sep 25, 2017 at 01:33:13AM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> It should not be necessary to resume devices with ignore_children set
> in pci_pm_prepare(), because they should be resumed explcitly by
s/explcitly/explicitly/
> their children drivers during suspend if need be and they will be
> resumed by pci_pm_suspend() after that anyway, so avoid doing that.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
I think your previous patches to this file mostly used a "PCI / PM"
subject line prefix (as opposed to the "PM / PCI" here). But maybe
the difference means something?
> ---
> drivers/pci/pci-driver.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> Index: linux-pm/drivers/pci/pci-driver.c
> ===================================================================
> --- linux-pm.orig/drivers/pci/pci-driver.c
> +++ linux-pm/drivers/pci/pci-driver.c
> @@ -680,13 +680,6 @@ static int pci_pm_prepare(struct device
> {
> struct device_driver *drv = dev->driver;
>
> - /*
> - * Devices having power.ignore_children set may still be necessary for
> - * suspending their children in the next phase of device suspend.
> - */
> - if (dev->power.ignore_children)
> - pm_runtime_resume(dev);
> -
> if (drv && drv->pm && drv->pm->prepare) {
> int error = drv->pm->prepare(dev);
> if (error)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] PM / PCI: Do not resume any devices in pci_pm_prepare()
2017-09-24 23:33 [PATCH] PM / PCI: Do not resume any devices in pci_pm_prepare() Rafael J. Wysocki
2017-09-26 21:34 ` Bjorn Helgaas
@ 2017-09-26 21:35 ` Bjorn Helgaas
2017-09-26 21:39 ` Rafael J. Wysocki
1 sibling, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2017-09-26 21:35 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Linux PCI, Bjorn Helgaas, Alan Stern, Linux PM, Mika Westerberg, LKML
On Mon, Sep 25, 2017 at 01:33:13AM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> It should not be necessary to resume devices with ignore_children set
> in pci_pm_prepare(), because they should be resumed explcitly by
> their children drivers during suspend if need be and they will be
> resumed by pci_pm_suspend() after that anyway, so avoid doing that.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Oh, and I meant to also say that you've merged the PM-related things
here in the past, so I assume you'll take this one :)
> ---
> drivers/pci/pci-driver.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> Index: linux-pm/drivers/pci/pci-driver.c
> ===================================================================
> --- linux-pm.orig/drivers/pci/pci-driver.c
> +++ linux-pm/drivers/pci/pci-driver.c
> @@ -680,13 +680,6 @@ static int pci_pm_prepare(struct device
> {
> struct device_driver *drv = dev->driver;
>
> - /*
> - * Devices having power.ignore_children set may still be necessary for
> - * suspending their children in the next phase of device suspend.
> - */
> - if (dev->power.ignore_children)
> - pm_runtime_resume(dev);
> -
> if (drv && drv->pm && drv->pm->prepare) {
> int error = drv->pm->prepare(dev);
> if (error)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] PM / PCI: Do not resume any devices in pci_pm_prepare()
2017-09-26 21:34 ` Bjorn Helgaas
@ 2017-09-26 21:39 ` Rafael J. Wysocki
0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2017-09-26 21:39 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Rafael J. Wysocki, Linux PCI, Bjorn Helgaas, Alan Stern,
Linux PM, Mika Westerberg, LKML
On Tue, Sep 26, 2017 at 11:34 PM, Bjorn Helgaas <helgaas@kernel.org> wrote:
> On Mon, Sep 25, 2017 at 01:33:13AM +0200, Rafael J. Wysocki wrote:
>> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>>
>> It should not be necessary to resume devices with ignore_children set
>> in pci_pm_prepare(), because they should be resumed explcitly by
>
> s/explcitly/explicitly/
Yup.
>> their children drivers during suspend if need be and they will be
>> resumed by pci_pm_suspend() after that anyway, so avoid doing that.
>>
>> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
>
> I think your previous patches to this file mostly used a "PCI / PM"
> subject line prefix (as opposed to the "PM / PCI" here). But maybe
> the difference means something?
No, it doesn't. I'll change it to match the previous ones. :-)
Thanks,
Rafael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] PM / PCI: Do not resume any devices in pci_pm_prepare()
2017-09-26 21:35 ` Bjorn Helgaas
@ 2017-09-26 21:39 ` Rafael J. Wysocki
0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2017-09-26 21:39 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Rafael J. Wysocki, Linux PCI, Bjorn Helgaas, Alan Stern,
Linux PM, Mika Westerberg, LKML
On Tue, Sep 26, 2017 at 11:35 PM, Bjorn Helgaas <helgaas@kernel.org> wrote:
> On Mon, Sep 25, 2017 at 01:33:13AM +0200, Rafael J. Wysocki wrote:
>> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>>
>> It should not be necessary to resume devices with ignore_children set
>> in pci_pm_prepare(), because they should be resumed explcitly by
>> their children drivers during suspend if need be and they will be
>> resumed by pci_pm_suspend() after that anyway, so avoid doing that.
>>
>> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Oh, and I meant to also say that you've merged the PM-related things
> here in the past, so I assume you'll take this one :)
I will. :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-09-26 21:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-24 23:33 [PATCH] PM / PCI: Do not resume any devices in pci_pm_prepare() Rafael J. Wysocki
2017-09-26 21:34 ` Bjorn Helgaas
2017-09-26 21:39 ` Rafael J. Wysocki
2017-09-26 21:35 ` Bjorn Helgaas
2017-09-26 21:39 ` Rafael J. Wysocki
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.