]> Pileus Git - ~andy/linux/commit
ACPI / PM: allow child devices to ignore parent power state
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 10 Oct 2013 10:28:46 +0000 (13:28 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 11 Oct 2013 00:23:14 +0000 (02:23 +0200)
commit644f17ad7fc12768cd619532383343e514eab2ac
treed862d7b92d113ccacc529aeabff9f7ab0af3d6b1
parent360818b83f8652655558d0ab0d61c2d98a1cb631
ACPI / PM: allow child devices to ignore parent power state

Some serial buses like I2C and SPI don't require that the parent device is
in D0 before any of its children transitions to D0, but instead the parent
device can control its own power independently from the children.

This does not follow the ACPI specification as it requires the parent to be
powered on before its children. However, Windows seems to ignore this
requirement so I think we can do the same in Linux.

Implement this by adding a new power flag 'ignore_parent' to struct
acpi_device.  If this flag is set the ACPI core ignores checking of the
parent device power state when the device is powered on/off.

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