]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / scan: Treat power resources in a special way
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jan 2013 20:17:02 +0000 (21:17 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jan 2013 20:17:02 +0000 (21:17 +0100)
commit482c419194c8a6dd805a378b8cd285bf02e7fc5d
tree19ad6adead071b2812f5f8c702cd415c4bcb2b04
parent02ebc6ebe7a446faa3e62239c642e9d8a1982fc6
ACPI / scan: Treat power resources in a special way

Commit a84db5e (ACPI: Separate adding ACPI device objects from
probing ACPI drivers) introduced an ACPI power resources management
regression, because it didn't ensure that the power resources
driver bind to the struct acpi_device objects corresponding
to power resources as soon as they were created.  As a result,
ACPI power management routines may attempt to access power resource
objects before they are ready to use.

To fix this problem, tell the acpi_add_single_object() in
acpi_bus_check_add() to probe the driver for objects of type
ACPI_BUS_TYPE_POWER.  This fix has been verified to work on
HP nx6325 where the problem was first observed.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/scan.c