]> rtime.felk.cvut.cz Git - linux-imx.git/commit
ACPI / PM: Handle missing _PSC in acpi_bus_update_power()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 3 Feb 2013 13:57:32 +0000 (14:57 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 3 Feb 2013 13:57:32 +0000 (14:57 +0100)
commit511d5c4212948fe55035b8fed61ac0e125af5a05
tree3b8b6a2d929aa8515f4de4e736f10626e747cdf0
parentb3785492268f9f3cdaa9722facb84b266dcf8bf6
ACPI / PM: Handle missing _PSC in acpi_bus_update_power()

If _PS0 is defined for an ACPI device node, but _PSC isn't and
the device node doesn't use power resources for power management,
acpi_bus_update_power() will fail to update the power state of it,
because acpi_device_get_power() returns ACPI_STATE_UNKNOWN in that
case.

To handle that situation make acpi_bus_update_power() follow
acpi_bus_init_power() and try to force the given device node into
power state D0.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_pm.c