All of lore.kernel.org
 help / color / mirror / Atom feed
* any way to evaluate a device's _PS0 method when its power state is at D0?
@ 2011-05-19 10:06 aaron lwe
  2011-05-19 12:42 ` Matthew Garrett
  0 siblings, 1 reply; 6+ messages in thread
From: aaron lwe @ 2011-05-19 10:06 UTC (permalink / raw)
  To: linux-acpi

Hi,

On init, a device's power state is set by acpi_bus_init_power, it got
the information either via power_resources or via _PSC.

My BIOS vendor here did this simply as follows:

Device (xx)
{
        Name (ABPS, 0)

        Method (_PSC, 0, NotSerialized)
        {
                Return (ABPS)
        }
}

So on init, this device's power state will be set to D0 due to ABPS is
0, but its _PS0 never get called.
If later I want to evaluate its _PS0 control method, what should I do?
acpi_bus_set_power will return if it found the set state is the same
with the current state.

Thanks,
Aaron

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-19 15:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 10:06 any way to evaluate a device's _PS0 method when its power state is at D0? aaron lwe
2011-05-19 12:42 ` Matthew Garrett
2011-05-19 15:05   ` aaron lwe
2011-05-19 15:14     ` Matthew Garrett
2011-05-19 15:28       ` aaron lwe
2011-05-19 15:45         ` Matthew Garrett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.