Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-09 Thread Rafael J. Wysocki
On Fri, Dec 8, 2017 at 9:25 PM, Bjorn Helgaas wrote: > On Thu, Dec 07, 2017 at 03:26:14AM +0100, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Middle-layer code doing suspend-time optimizations for devices with >> the

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-09 Thread Rafael J. Wysocki
On Fri, Dec 8, 2017 at 9:25 PM, Bjorn Helgaas wrote: > On Thu, Dec 07, 2017 at 03:26:14AM +0100, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Middle-layer code doing suspend-time optimizations for devices with >> the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-08 Thread Bjorn Helgaas
On Thu, Dec 07, 2017 at 03:26:14AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Middle-layer code doing suspend-time optimizations for devices with > the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and > the ACPI PM domain) needs to

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-08 Thread Bjorn Helgaas
On Thu, Dec 07, 2017 at 03:26:14AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Middle-layer code doing suspend-time optimizations for devices with > the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and > the ACPI PM domain) needs to make the core skip

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-07 Thread Rafael J. Wysocki
On Thu, Dec 7, 2017 at 8:44 PM, Ulf Hansson wrote: > On 7 December 2017 at 03:26, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Middle-layer code doing suspend-time optimizations for devices with >> the

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-07 Thread Rafael J. Wysocki
On Thu, Dec 7, 2017 at 8:44 PM, Ulf Hansson wrote: > On 7 December 2017 at 03:26, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Middle-layer code doing suspend-time optimizations for devices with >> the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and >> the ACPI PM

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-07 Thread Ulf Hansson
On 7 December 2017 at 03:26, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Middle-layer code doing suspend-time optimizations for devices with > the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and > the ACPI PM domain)

Re: [PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-07 Thread Ulf Hansson
On 7 December 2017 at 03:26, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Middle-layer code doing suspend-time optimizations for devices with > the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and > the ACPI PM domain) needs to make the core skip ->thaw_early and >

[PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-06 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Middle-layer code doing suspend-time optimizations for devices with the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and the ACPI PM domain) needs to make the core skip ->thaw_early and ->thaw callbacks for those devices in some

[PATCH] PM / sleep: Avoid excess pm_runtime_enable() calls in device_resume()

2017-12-06 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Middle-layer code doing suspend-time optimizations for devices with the DPM_FLAG_SMART_SUSPEND flag set (currently, the PCI bus type and the ACPI PM domain) needs to make the core skip ->thaw_early and ->thaw callbacks for those devices in some cases and it sets the