Skip to content

RFC PM: Rework suspend and hibernation code for devices (rev. 3)

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PM: Introduce new top level suspend and hibernation callbacks (rev. 5)arch/x86/kernel/apm_32.c drivers/base/power/main.c drivers/base/power/power.h +5 more+857 -1990 replies
1/3PM: Introduce new top level suspend and hibernation callbacks (rev. 5)arch/x86/kernel/apm_32.c drivers/base/power/main.c drivers/base/power/power.h +5 more+857 -19949 replies
2/3PM: New suspend and hibernation callbacks for platform bus type (rev. 3)drivers/base/platform.c include/linux/platform_device.h+289 -80 replies
2/3PM: New suspend and hibernation callbacks for platform bus type (rev. 3)drivers/base/platform.c include/linux/platform_device.h+289 -82 replies
3/3PM: New suspend and hibernation callbacks for PCI bus type (rev. 3)drivers/pci/pci-driver.c include/linux/pci.h+334 -390 replies
3/3PM: New suspend and hibernation callbacks for PCI bus type (rev. 3)drivers/pci/pci-driver.c include/linux/pci.h+334 -390 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC][PATCH 0/3] PM: Rework suspend and hibernation code for devices (rev. 3)

Hi,

The following three patches are intended to start the redesign of the suspend and hibernation framework for devices.

The first one is the 5th revision of the patch introducing new callbacks for suspend and hibernation.

The other two patches implement the new suspend and hibernation callbacks for the platform and PCI bus types (3rd revision of both).

The main differences between these patches and the previous revision:
* Dropped 'struct pm_noirq_ops' and introduced 'struct pm_ext_ops' that is a derivative of 'struct pm_ops' (adds the _noirq operations).
* Made device_pm_add() refuse to add devices for which dev->parent->power.status == DPM_INVALID
* Clarified (hopefully) the new platform and pci driver code

Please review.

Thanks,
Rafael