diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-05-29 21:21:07 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-07-25 04:11:45 +0100 |
commit | db4fd57ab669f33ca6ef67e9f0c8074906073726 (patch) | |
tree | 061075e203a62d9ca1ebfb6fb0af13dfa6b34ce5 /drivers/net/usb/ipheth.c | |
parent | 03d200117c06fde714344f8f4f0301f609959b53 (diff) | |
download | lwn-db4fd57ab669f33ca6ef67e9f0c8074906073726.tar.gz lwn-db4fd57ab669f33ca6ef67e9f0c8074906073726.zip |
ACPI / PM: Make acpi_pm_device_sleep_state() follow the specification
commit dbe9a2edd17d843d80faf2b99f20a691c1853418 upstream.
The comparison between the system sleep state being entered
and the lowest system sleep state the given device may wake up
from in acpi_pm_device_sleep_state() is reversed, because the
specification (ACPI 5.0) says that for wakeup to work:
"The sleeping state being entered must be less than or equal to the
power state declared in element 1 of the _PRW object."
In other words, the state returned by _PRW is the deepest
(lowest-power) system sleep state the device is capable of waking up
the system from.
Moreover, acpi_pm_device_sleep_state() also should check if the
wakeup capability is supported through ACPI, because in principle it
may be done via native PCIe PME, for example, in which case _SxW
should not be evaluated.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/net/usb/ipheth.c')
0 files changed, 0 insertions, 0 deletions