Skip to content

PCI PM: Handling of PCI devices wake-up functionality

Rafael J. Wysocki linux-acpi linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11ACPI: Introduce acpi_bus_power_manageable functiondrivers/acpi/bus.c include/acpi/acpi_bus.h+12 -00 replies
1/11ACPI: Introduce acpi_bus_power_manageable functiondrivers/acpi/bus.c include/acpi/acpi_bus.h+12 -01 reply
2/11PCI: Introduce platform_pci_power_manageable functiondrivers/pci/pci-acpi.c drivers/pci/pci.c drivers/pci/pci.h+65 -200 replies
2/11PCI: Introduce platform_pci_power_manageable functiondrivers/pci/pci-acpi.c drivers/pci/pci.c drivers/pci/pci.h+65 -202 replies
3/11PCI: Rework pci_set_power_state function (rev. 3)drivers/pci/pci-acpi.c drivers/pci/pci.c+115 -530 replies
3/11PCI: Rework pci_set_power_state function (rev. 3)drivers/pci/pci-acpi.c drivers/pci/pci.c+115 -532 replies
4/11ACPI: Introduce acpi_device_sleep_wake functiondrivers/acpi/power.c drivers/acpi/scan.c drivers/acpi/sleep/wakeup.c +1 more+92 -740 replies
4/11ACPI: Introduce acpi_device_sleep_wake functiondrivers/acpi/power.c drivers/acpi/scan.c drivers/acpi/sleep/wakeup.c +1 more+92 -742 replies
5/11ACPI: Introduce new device wakeup flag 'prepared'drivers/acpi/power.c include/acpi/acpi_bus.h+23 -20 replies
5/11ACPI: Introduce new device wakeup flag 'prepared'drivers/acpi/power.c include/acpi/acpi_bus.h+23 -22 replies
6/11PCI ACPI: Introduce acpi_pm_device_sleep_wake functiondrivers/acpi/sleep/main.c drivers/base/power/sysfs.c drivers/pci/pci-acpi.c +4 more+84 -440 replies
6/11PCI ACPI: Introduce acpi_pm_device_sleep_wake functiondrivers/acpi/sleep/main.c drivers/base/power/sysfs.c drivers/pci/pci-acpi.c +4 more+84 -440 replies
7/11PCI ACPI: Introduce can_wakeup platform callbackdrivers/acpi/bus.c drivers/pci/pci-acpi.c drivers/pci/pci.c +2 more+32 -30 replies
7/11PCI ACPI: Introduce can_wakeup platform callbackdrivers/acpi/bus.c drivers/pci/pci-acpi.c drivers/pci/pci.c +2 more+32 -30 replies
8/11PCI PM: Rework device PM initialization (rev. 3)drivers/pci/pci.c drivers/pci/pci.h drivers/pci/probe.c+98 -1000 replies
8/11PCI PM: Rework device PM initialization (rev. 3)drivers/pci/pci.c drivers/pci/pci.h drivers/pci/probe.c+98 -1000 replies
9/11ACPI: Make ACPI update wake-up capability flag for devices that can wake updrivers/acpi/glue.c include/linux/pm_wakeup.h+7 -00 replies
9/11ACPI: Make ACPI update wake-up capability flag for devices that can wake updrivers/acpi/glue.c include/linux/pm_wakeup.h+7 -00 replies
10/11PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleepdrivers/pci/pci.c include/linux/pci.h+85 -00 replies
10/11PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleepdrivers/pci/pci.c include/linux/pci.h+85 -02 replies
11/11PCI: Simplify PCI device PM codedrivers/pci/pci.c include/linux/pci.h include/linux/pci_regs.h+39 -540 replies
11/11PCI: Simplify PCI device PM codedrivers/pci/pci.c include/linux/pci.h include/linux/pci_regs.h+39 -540 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/11] PCI PM: Handling of PCI devices wake-up functionality

Hi,

The purpose of the following series of patches is to rework the power management of PCI devices so that the handling of their wake-up functionality is consistent with the other PM operations and so that the user space can manage the wake-up functionality of PCI devices using the /sys/devices/.../power/wakeup interface regardless of whether the wake-up function is based on the native PCI mechanism (PME#), or it is handled by the platform (eg. ACPI).

Apart from the ACPI and PCI changes necessary for this purpose, the series includes some clean-ups that are not strictly required, but make the code more straightforward and (IMHO) easier to follow.

Please review.

Thanks,
Rafael

Signature · 1 line
"Premature optimization is the root of all evil." - Donald Knuth