Re: [PATCH 2/6] ACPI / PM: Consolidate device wakeup settings code

2017-06-26 Thread Mika Westerberg
On Fri, Jun 23, 2017 at 03:05:57AM +0200, Rafael J. Wysocki wrote: > On Thursday, June 22, 2017 04:38:49 PM Rafael J. Wysocki wrote: > > On Thursday, June 22, 2017 10:39:37 AM Mika Westerberg wrote: > > > On Mon, Jun 19, 2017 at 11:33:52PM +0200, Rafael J. Wysocki wrote: > > > > -#ifdef CONFIG_PM_S

Re: [PATCH 2/6] ACPI / PM: Consolidate device wakeup settings code

2017-06-22 Thread Rafael J. Wysocki
On Thursday, June 22, 2017 04:38:49 PM Rafael J. Wysocki wrote: > On Thursday, June 22, 2017 10:39:37 AM Mika Westerberg wrote: > > On Mon, Jun 19, 2017 at 11:33:52PM +0200, Rafael J. Wysocki wrote: > > > -#ifdef CONFIG_PM_SLEEP > > > -/** > > > - * acpi_pm_device_sleep_wake - Enable or disable dev

Re: [PATCH 2/6] ACPI / PM: Consolidate device wakeup settings code

2017-06-22 Thread Rafael J. Wysocki
On Thursday, June 22, 2017 10:39:37 AM Mika Westerberg wrote: > On Mon, Jun 19, 2017 at 11:33:52PM +0200, Rafael J. Wysocki wrote: > > -#ifdef CONFIG_PM_SLEEP > > -/** > > - * acpi_pm_device_sleep_wake - Enable or disable device to wake up the > > system. > > - * @dev: Device to enable/desible to

Re: [PATCH 2/6] ACPI / PM: Consolidate device wakeup settings code

2017-06-22 Thread Mika Westerberg
On Mon, Jun 19, 2017 at 11:33:52PM +0200, Rafael J. Wysocki wrote: > -#ifdef CONFIG_PM_SLEEP > -/** > - * acpi_pm_device_sleep_wake - Enable or disable device to wake up the > system. > - * @dev: Device to enable/desible to wake up the system from sleep states. > - * @enable: Whether to enable or

[PATCH 2/6] ACPI / PM: Consolidate device wakeup settings code

2017-06-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Currently, there are two separate ways of handling device wakeup settings in the ACPI core, depending on whether this is runtime wakeup or system wakeup (from sleep states). However, after the previous commit eliminating the run_wake ACPI device wakeup flag, there is no d