Re: [PATCH] ACPI / PM: Infer parent power state from child if unknown, v2

2012-09-11 Thread Aaron Lu
On Tue, Sep 11, 2012 at 10:38:06PM +0200, Rafael J. Wysocki wrote: > It turns out that there are ACPI BIOSes defining device objects with > _PSx and without either _PSC or _PRx. For devices corresponding to > those ACPI objetcs __acpi_bus_get_power() returns ACPI_STATE_UNKNOWN > and their initial

[PATCH] ACPI / PM: Infer parent power state from child if unknown, v2

2012-09-11 Thread Rafael J. Wysocki
It turns out that there are ACPI BIOSes defining device objects with _PSx and without either _PSC or _PRx. For devices corresponding to those ACPI objetcs __acpi_bus_get_power() returns ACPI_STATE_UNKNOWN and their initial power states are regarded as unknown as a result. If such a device is a par

Re: [PATCH] ACPI / PM: Infer parent power state from child if unknown

2012-09-11 Thread Rafael J. Wysocki
On Tuesday, September 11, 2012, Aaron Lu wrote: > On Mon, Sep 10, 2012 at 09:50:22PM +0200, Rafael J. Wysocki wrote: > > drivers/acpi/bus.c | 11 ++- > > 1 file changed, 10 insertions(+), 1 deletion(-) > > > > Index: linux/drivers/acpi/bus.c > > =

Re: [PATCH] ACPI / PM: Infer parent power state from child if unknown

2012-09-10 Thread Aaron Lu
On Mon, Sep 10, 2012 at 09:50:22PM +0200, Rafael J. Wysocki wrote: > drivers/acpi/bus.c | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > Index: linux/drivers/acpi/bus.c > === > --- linux.orig/drivers/acpi/bus

[PATCH] ACPI / PM: Infer parent power state from child if unknown

2012-09-10 Thread Rafael J. Wysocki
It turns out that there are ACPI BIOSes defining device objects with _PSx and without either _PSC or _PRx. For devices corresponding to those ACPI objetcs __acpi_bus_get_power() returns ACPI_STATE_UNKNOWN and their initial power states are regarded as unknown as a result. If such a device is a par