pci-acpi.c (20c7775aecea04d8ca322039969d49dcf568e0e9) pci-acpi.c (7482c5cb90e5a7f9e9e12dd154d405e0219656e3)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * PCI support in ACPI
4 *
5 * Copyright (C) 2005 David Shaohua Li <shaohua.li@intel.com>
6 * Copyright (C) 2004 Tom Long Nguyen <tom.l.nguyen@intel.com>
7 * Copyright (C) 2004 Intel Corp.
8 */

--- 1046 unchanged lines hidden (view full) ---

1055 if (adev && acpi_device_power_manageable(adev))
1056 acpi_device_update_power(adev, NULL);
1057}
1058
1059static int acpi_pci_propagate_wakeup(struct pci_bus *bus, bool enable)
1060{
1061 while (bus->parent) {
1062 if (acpi_pm_device_can_wakeup(&bus->self->dev))
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * PCI support in ACPI
4 *
5 * Copyright (C) 2005 David Shaohua Li <shaohua.li@intel.com>
6 * Copyright (C) 2004 Tom Long Nguyen <tom.l.nguyen@intel.com>
7 * Copyright (C) 2004 Intel Corp.
8 */

--- 1046 unchanged lines hidden (view full) ---

1055 if (adev && acpi_device_power_manageable(adev))
1056 acpi_device_update_power(adev, NULL);
1057}
1058
1059static int acpi_pci_propagate_wakeup(struct pci_bus *bus, bool enable)
1060{
1061 while (bus->parent) {
1062 if (acpi_pm_device_can_wakeup(&bus->self->dev))
1063 return acpi_pm_set_bridge_wakeup(&bus->self->dev, enable);
1063 return acpi_pm_set_device_wakeup(&bus->self->dev, enable);
1064
1065 bus = bus->parent;
1066 }
1067
1068 /* We have reached the root bus. */
1069 if (bus->bridge) {
1070 if (acpi_pm_device_can_wakeup(bus->bridge))
1064
1065 bus = bus->parent;
1066 }
1067
1068 /* We have reached the root bus. */
1069 if (bus->bridge) {
1070 if (acpi_pm_device_can_wakeup(bus->bridge))
1071 return acpi_pm_set_bridge_wakeup(bus->bridge, enable);
1071 return acpi_pm_set_device_wakeup(bus->bridge, enable);
1072 }
1073 return 0;
1074}
1075
1076static int acpi_pci_wakeup(struct pci_dev *dev, bool enable)
1077{
1078 if (acpi_pm_device_can_wakeup(&dev->dev))
1079 return acpi_pm_set_device_wakeup(&dev->dev, enable);

--- 290 unchanged lines hidden ---
1072 }
1073 return 0;
1074}
1075
1076static int acpi_pci_wakeup(struct pci_dev *dev, bool enable)
1077{
1078 if (acpi_pm_device_can_wakeup(&dev->dev))
1079 return acpi_pm_set_device_wakeup(&dev->dev, enable);

--- 290 unchanged lines hidden ---