mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Acked-by: Bjorn Helgaas <[email protected]>
This commit is contained in:
parent
0847684cfc
commit
de3ef1eb1c
9 changed files with 11 additions and 32 deletions
|
|
@ -608,8 +608,7 @@ static int acpi_pci_root_add(struct acpi_device *device,
|
|||
pcie_no_aspm();
|
||||
|
||||
pci_acpi_add_bus_pm_notifier(device);
|
||||
if (device->wakeup.flags.valid)
|
||||
device_set_run_wake(root->bus->bridge, true);
|
||||
device_set_wakeup_capable(root->bus->bridge, device->wakeup.flags.valid);
|
||||
|
||||
if (hotadd) {
|
||||
pcibios_resource_survey_bus(root->bus);
|
||||
|
|
@ -649,7 +648,7 @@ static void acpi_pci_root_remove(struct acpi_device *device)
|
|||
pci_stop_root_bus(root->bus);
|
||||
|
||||
pci_ioapic_remove(root);
|
||||
device_set_run_wake(root->bus->bridge, false);
|
||||
device_set_wakeup_capable(root->bus->bridge, false);
|
||||
pci_acpi_remove_bus_pm_notifier(device);
|
||||
|
||||
pci_remove_root_bus(root->bus);
|
||||
|
|
|
|||
Loading…
Reference in a new issue