Skip to content

PCI PM: Handling of PCI devices wake-up functionality (rev. 3)

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9PCI ACPI: Remove acpi_platform_enable_wakeupdrivers/pci/pci-acpi.c+0 -200 replies
1/9PCI ACPI: Remove acpi_platform_enable_wakeupdrivers/pci/pci-acpi.c+0 -200 replies
2/9ACPI: Introduce acpi_bus_power_manageable functiondrivers/acpi/bus.c include/acpi/acpi_bus.h+12 -00 replies
2/9ACPI: Introduce acpi_bus_power_manageable functiondrivers/acpi/bus.c include/acpi/acpi_bus.h+12 -00 replies
3/9PCI: Introduce platform_pci_power_manageable functiondrivers/pci/pci-acpi.c drivers/pci/pci.c drivers/pci/pci.h+65 -200 replies
3/9PCI: Introduce platform_pci_power_manageable functiondrivers/pci/pci-acpi.c drivers/pci/pci.c drivers/pci/pci.h+65 -200 replies
4/9PCI: Rework pci_set_power_state function (rev. 3)drivers/pci/pci-acpi.c drivers/pci/pci.c+115 -530 replies
4/9PCI: Rework pci_set_power_state function (rev. 3)drivers/pci/pci-acpi.c drivers/pci/pci.c+115 -530 replies
5/9ACPI: Introduce acpi_device_sleep_wake functiondrivers/acpi/power.c drivers/acpi/scan.c drivers/acpi/sleep/wakeup.c +1 more+92 -740 replies
5/9ACPI: Introduce acpi_device_sleep_wake functiondrivers/acpi/power.c drivers/acpi/scan.c drivers/acpi/sleep/wakeup.c +1 more+92 -740 replies
6/9ACPI: Introduce new device wakeup flag 'prepared'drivers/acpi/power.c include/acpi/acpi_bus.h+23 -20 replies
6/9ACPI: Introduce new device wakeup flag 'prepared'drivers/acpi/power.c include/acpi/acpi_bus.h+23 -20 replies
7/9PCI ACPI: Rework PCI handling of wake-up (rev. 4)drivers/acpi/bus.c drivers/acpi/glue.c drivers/acpi/sleep/main.c +8 more+207 -1160 replies
7/9PCI ACPI: Rework PCI handling of wake-up (rev. 4)drivers/acpi/bus.c drivers/acpi/glue.c drivers/acpi/sleep/main.c +8 more+207 -1164 replies
8/9PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleepdrivers/pci/pci.c include/linux/pci.h+85 -00 replies
8/9PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleepdrivers/pci/pci.c include/linux/pci.h+85 -00 replies
9/9PCI: Simplify PCI device PM code (rev. 4)drivers/pci/pci.c include/linux/pci.h include/linux/pci_regs.h+60 -670 replies
9/9PCI: Simplify PCI device PM code (rev. 4)drivers/pci/pci.c include/linux/pci.h include/linux/pci_regs.h+60 -670 replies

Reviews trailers per patch

6 of 18 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPavel Machek
SeriesA-b A-b A-b A-b A-b A-b
1/9
1/9
2/9A-b A-b
2/9A-b A-b
3/9
3/9
4/9A-b A-b
4/9A-b A-b
5/9A-b A-b
5/9A-b A-b
6/9
6/9
7/9
7/9
8/9
8/9
9/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] PCI PM: Handling of PCI devices wake-up functionality (rev. 3)

Hi,

This is a new (3rd) iteration of the series of patches intended 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.

The patchset is on top of the linux-next from today. It contains one additional patch [1/9] which is a revert of another patch that shouldn't have been put into linux-next (at least not in the way it was done).

Please review.

Thanks,
Rafael

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