]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ACPI / PM: Allow attach/detach routines to change device power states
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Nov 2012 09:03:06 +0000 (10:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Nov 2012 09:03:06 +0000 (10:03 +0100)
commitb88ce2a41562d1a9554f209e0f31a32d9f473794
treeab9a0509fcc0e5f412cd8eade4a1b6ef5e13e889
parent1399dfcdfe89898ccd791216f9679ba734aea910
ACPI / PM: Allow attach/detach routines to change device power states

Make it possible to ask the routines used for adding/removing devices
to/from the general ACPI PM domain, acpi_dev_pm_attach() and
acpi_dev_pm_detach(), respectively, to change the power states of
devices so that they are put into the full-power state automatically
by acpi_dev_pm_attach() and into the lowest-power state available
automatically by acpi_dev_pm_detach().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/device_pm.c
include/linux/acpi.h