]> git.baikalelectronics.ru Git - kernel.git/commit
PM / core: Drop run_wake flag from struct dev_pm_info
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jun 2017 23:58:53 +0000 (01:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 27 Jun 2017 23:52:52 +0000 (01:52 +0200)
commit46ce6af4269f5265b1673c6ec0ae05375d6e42ea
treed74445102cc3ff9680422c69603d575646420b8d
parente8f27ddcae4a986c5c7c5e439530331f1822780b
PM / core: Drop run_wake flag from struct dev_pm_info

The run_wake flag in struct dev_pm_info is used to indicate whether
or not the device is capable of generating remote wakeup signals at
run time (or in the system working state), but the distinction
between runtime remote wakeup and system wakeup signaling has always
been rather artificial.  The only practical reason for it to exist
at the core level was that ACPI and PCI treated those two cases
differently, but that's not the case any more after recent changes.

For this reason, get rid of the run_wake flag and, when applicable,
use device_set_wakeup_capable() and device_can_wakeup() instead of
device_set_run_wake() and device_run_wake(), respectively.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Documentation/power/runtime_pm.txt
drivers/acpi/pci_root.c
drivers/pci/pci-acpi.c
drivers/pci/pci.c
drivers/pci/pcie/pme.c
drivers/usb/dwc3/dwc3-pci.c
drivers/usb/host/uhci-pci.c
include/linux/pm.h
include/linux/pm_runtime.h