Skip to content

PM: PCI/ACPI: Hibernation handling fixes

Rafael J. Wysocki linux-acpi linux-pci linux-pm lkml 2 versions – In review

Get series with b4
b4 am 4976412.ihyb9sT5jY@kreacher

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesIn review
  2. v16 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5PM: ACPI/PCI: Resume all devices during hibernationdrivers/acpi/device_pm.c drivers/pci/pci-driver.c+15 -143 replies
2/5PCI: PM: Simplify bus-level hibernation callbacksdrivers/pci/pci-driver.c+0 -270 replies
3/5ACPI: PM: Simplify and fix PM domain hibernation callbacksdrivers/acpi/acpi_lpss.c drivers/acpi/device_pm.c include/linux/acpi.h+61 -710 replies
4/5ACPI: PM: Introduce "poweroff" callbacks for ACPI PM domain and LPSSdrivers/acpi/acpi_lpss.c drivers/acpi/device_pm.c include/linux/acpi.h+104 -60 replies
5/5ACPI: PM: Drop unused function and function headerinclude/linux/acpi.h+0 -20 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRobert R. HowellHans de GoedeMika Westerberg
SeriesR-b R-b
1/5T-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] PM: PCI/ACPI: Hibernation handling fixes

Hi All,

This series of patches addresses a few issues related to the handling of hibernation in the PCI bus type and the ACPI PM domain and ACPI LPSS driver.

The v2 addresses Hans' concerns regarding the LPSS changes.

First of all, all of the runtime-suspended PCI devices and devices in the ACPI PM and LPSS PM domains will be resumed during hibernation (first patch). This appears to be the only way to avoid weird corner cases and the benefit from avoiding to resume those devices during hibernation is questionable.

That change allows the the hibernation callbacks in all of the involved subsystems to be simplified (patches 2 and 3).

Moreover, reusing bus-level suspend callbacks for the "poweroff" transition during hibernation (which is the case for the ACPI PM domain and LPSS) is incorrect, so patch 4 fixes that.

Finally, there are some leftover items in linux/acpi.h that can be dropped (patch 5).

Thanks,
Rafael