Skip to content

ACPI: Fix handling of power resources during initialization

Rafael J. Wysocki linux-acpi linux-pm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI / PM: Register acpi_power_driver earlydrivers/acpi/bus.c drivers/acpi/scan.c+2 -10 replies
1/3ACPI / PM: Register acpi_power_driver earlydrivers/acpi/bus.c drivers/acpi/scan.c+2 -10 replies
2/3ACPI / PM: Register power resource devices as soon as they are neededdrivers/acpi/scan.c+20 -00 replies
2/3ACPI / PM: Register power resource devices as soon as they are neededdrivers/acpi/scan.c+20 -00 replies
3/3ACPI / PM: Fix initial reference counting of power resourcesdrivers/acpi/scan.c+4 -20 replies
3/3ACPI / PM: Fix initial reference counting of power resourcesdrivers/acpi/scan.c+4 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC/RFT][PATCH 0/3] ACPI: Fix handling of power resources during initialization

Hi,

The following series of patches attempts to fix the problems with the handling of power resources during initialization.

[1/3] allows power resource devices to be initialized by acpi_power driver as
soon as they are found.

[2/3] creates power resource device objects as soon as they appear in the _PRn
output for any devices.

[3/3] uses acpi_power_transition() to set up the initial reference counting of
power resources as appropriate.

I have only tested them on machines without ACPI power resource objects, so all this is kind of theoretical at the moment, but I think the patches are simple enough.

Please test if you can and let me know what's wrong. :-)

Thanks,
Rafael